Skip to content

cyvax/Privatebin_PHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub License version packagist Packagist PHP Version Support Codacy grade

Privatebin_PHP

Privatebin_PHP is api for PrivateBin written on PHP.

Installing

composer require cyvax/privatebin_php

Dependencies

Tuupola Base58 : a Base58 encoder by Tuupola

Usage

By default Privatebin_PHP configured to use https://paste.i2pd.xyz/ for sending and receiving pastes.

You can parse config to a PrivatebinPHP object.

Example :
fast one with options passed as argument on creation :

use Cyvax\PrivatebinPHP;

$private =new PrivatebinPHP(array(
    "url" => "https://privatebin.net/",
    "text" => "Because ignorance is bliss!",
));
$posted = $private->encode_and_post();

It will send string Because ignorance is bliss! to PrivateBin.

Check Wiki for documentation.

License

This project is licensed under the MIT license, which can be found in the file LICENSE in the root of the project source code.