Download the PHP package adelowo/laravel-gbowo without Composer
On this page you can find all versions of the php package adelowo/laravel-gbowo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-gbowo
Laravel-Gbowo - A Laravel bridge for Gbowo
- Installation
- Usage
- API Methods
Installation
`
-
Append the
GbowoServiceProvider
to theprovider
key inconfig/app.php
- Set up a default adapter in
config/services.php
``
This step is optionally but can be helpful when you are certain you wouldn't be switching adapters in multiple places in your app.
Only paystack and amplifypay are currently supported.
- Optional, you can also make use of facades by adding this to the
aliases
key inconfig/app.php
Usage
Gbowo's official doc is highly recommendeded.
Calling the
adapter
method without passing in an adapter name would return an instance of the default adapter set in the config file.
Adding custom adapters
If you have written a custom adapter, you can include this in your app by doing what is obtainable below in a ServiceProvider
of your choice.
And you can access this new adapter anywhere in your code via
Facades
``
API methods
createPaystackAdapter()
createAmplifyPayAdapter()
extend(string $adapterName, Closure $callback)
adapter(string $name = null)
If
$name
is left null, the default adapter would be fetched by inspecting the value ofconfig.services.gbowo.default