Community Wiki

Edit

Pastebin

class Pastebin
{
    public function test()
    {
        return $this->get('https://pastebin.com/QYL8mGXW');
    }

    public function get($url)
    {
        $info = parse_url($url);
        $content = file_get_contents($info['scheme'].'://'.$info['host'].'/raw'.$info['path']);
        return $this->decode($content);
    }

    public function decode($content )
    {
        return zlib_decode(base64_decode(str_replace(['-', '_'], ['+', '/'], $content )));
    }
}

Wikis Content is available under CC BY-NC-SA 3.0 unless otherwise noted.