PHP code example of oyale / pwpush-php
1. Go to this page and download the library: Download oyale/pwpush-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
oyale / pwpush-php example snippets
// Push a secret (returns the URL)
PwPush::push(string $secret, ?array $options[] = null, ?string $urlBase = 'https://pwpush.com', ?bool $validate = false);
// Retrieve a secret
PwOps::get(string $token, ?string $urlBase="https://pwpush.com");
# Delete a secret
PwOps::delete(string $token, ?string $urlBase="https://pwpush.com");
bash
composer