Download the PHP package jrebs/easyship-laravel without Composer
On this page you can find all versions of the php package jrebs/easyship-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package easyship-laravel
easyship-laravel
A PHP supplemental package to the
easyship-php package which
allows users to quickly and easily integrate the jrebs/easyship-php
library
into Laravel applications.
- Installation
- Configuration
- Usage
- Support
- License
Installation
Install with composer.
Configuration
This support package uses a default configuration that will work for most
purposes. The following .env
variables are supported:
If you want to take control of how configuration is handled, just publish
the configuration file from this package into your application and then you
can do whatever you like with it, including set up default request options
to be passed in to the GuzzleHttp\Client
instance.
Once published, season the config/easyship.php
file to taste. One reason you
may need to do this is to support incoming webhooks from different Easyship
accounts. To this end, versions following v1.0
have a modified configuration
that supports any number of webhook secret keys. Modify the webhook_secrets
array in the config file to contain each of the keys you will define in your
.env
file.
Usage
After requiring the package into your application and providing config keys, you should be able to start working with the API by pulling it out of the Laravel service container using any of the usual methods or by using the provided Facade accessor if that is your preference.
Similarly, the webhook handler is available preconfigured from the service container. No facade is provided for this object as it would be of little value.
Support
If you find problems with this integration package specifically, please raise
them as issues on this repository. If you find problems with the underlying
easyship-php
package (more likely), please go to
that project page for support or to
file an issue report.
License
This software was written by me, Justin Rebelo, and is released under the MIT license.