cyvax/privatebin_php

Privatebin_PHP is a simple client for PrivateBin written on PHP.

1.1.2 2021-07-18 11:24 UTC

This package is auto-updated.

Last update: 2024-11-18 19:09:55 UTC


README

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.