Download the PHP package blashbrook/papiclient without Composer
On this page you can find all versions of the php package blashbrook/papiclient. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package papiclient
PAPIClient
This is where your description should go. Take a look at contributing.md to see a to do list.
Installation
Via Composer
Add the following variables to the project .env file
Usage
-
Use Injection to instantiate PAPIClient in a class: `
-
In a Livewire component, use the boot method:
- To make an API call to your Polaris server: `
- functions include:
- method('GET|PUT')
- protected() // Uses the protected API base URI instead of the default public URI.
- patron('BARCODE') // Allows you to insert a patron's barcode into the URI.
- uri('API Endpoint') // The part of the URI that performs the desired function (i.e 'authenicator/patron' or 'apikeyvalidate').
- params(array) // Used for form submissions (i.e. ['Barcode'=>'55555555555555', 'Password'=> '1234'] is sent to log in a patron).
- auth('AccessSecret') // Inserts a patron's temporary authentication token in the request headers.
- MORE TO COME!
Change log
PAPIClient has been refactored to use fluency! Now you can chain commands together, making the client more flexible and easier to use.
Please see the changelog for more information on what has changed recently.
@TODO Add Error catching
Testing
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email author email instead of using the issue tracker.
Credits
- author name
- All Contributors
License
license. Please see the license file for more information.