Download the PHP package oyale/pwpush-php without Composer
On this page you can find all versions of the php package oyale/pwpush-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download oyale/pwpush-php
More information about oyale/pwpush-php
Files in oyale/pwpush-php
Package pwpush-php
Short Description A PHP wrapper to easily push passwords to pwpush.com
License LGPL-3.0-or-later
Informations about the package pwpush-php
PwPush-PHP
A PHP library wrapper to easily push passwords to any PasswordPusher instance
Install
Usage
PwPush::push
Parameters
$secret
Required. \
The secret to be pushed\
Type: string
$options
Type: array
\
Default value: server configuration
$urlBase
URL of PwPush instance \
Type: string
\
Default value: https://pwpush.com
$validate
Validate JSON against schema prior to push secret\
Type: bool
\
Default value: false
Options
$options
is a key-value array. Valid options are:
expire_after_days
Number of days until the password is deleted.\
Type: integer
\
Default value: server configuration
expire_after_views
Number of visualizations until the password is deleted.\
Type: integer
\
Default value: server configuration
retrieval_step
Helps to avoid chat systems and URL scanners from eating up views.\
Type: bool
\
Default value: server configuration
deletable_by_viewer
Allow users to delete passwords once retrieved.\
Type: bool
\
Default value: server configuration
PwOps
Parameters
token
Required. \
Token for the secret\
Type: string
$urlBase
URL of PwPush instance \
Type: string
\
Default value: https://pwpush.com
Examples
You can see a complete workflow example in examples/workflow.php
License
LGPL-3.0