cyvax / privatebin_php
Privatebin_PHP is a simple client for PrivateBin written on PHP.
Installs: 1 284
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- php: >=7.1.0
- ext-curl: *
- ext-fileinfo: *
- ext-json: *
- ext-openssl: *
- ext-zlib: *
- tuupola/base58: ~2.1.0
README
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.