Download the PHP package vdhicts/wefact-api-client without Composer
On this page you can find all versions of the php package vdhicts/wefact-api-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vdhicts/wefact-api-client
More information about vdhicts/wefact-api-client
Files in vdhicts/wefact-api-client
Package wefact-api-client
Short Description A client for the API of WeFact
License MIT
Homepage https://github.com/vdhicts/wefact-api-client
Informations about the package wefact-api-client
wefact-api-client
Easy WeFact API client
Requirements
This package requires at least PHP 8.2.
Installation
This package can be used in any PHP project or with any framework.
You can install the package via composer:
composer require vdhicts/wefact-api-client
Usage
This package is just an easy client for using the WeFact API. Please refer to the API documentation for more information about the requests.
Getting started
Or if you need to provide extra parameters (i.e. for a 'add' request):
Extending the client
You can extend the client and implement your own endpoints:
Handling errors
A Response object will always be returned. See Error handling of the Http Client.
Laravel
This package can be easily used in any Laravel application. I would suggest adding your credentials to the .env file
of the project:
Next create a config file wefact.php in /config:
Then initialize the client with the API key:
In the future I might make a Laravel specific package which uses this package.
Contribution
Any contribution is welcome, but it should meet the PSR-12 standard and please create one pull request per feature/bug. In exchange, you will be credited as contributor on this page.
Security
If you discover any security related issues in this or other packages of Vdhicts, please email [email protected] instead of using the issue tracker.
Support
This package isn't an official package from WeFact, so they probably won't offer support for it. If you encounter a problem with this client or has a question about it, feel free to open an issue on GitHub.
License
This package is open-sourced software licensed under the MIT license.
All versions of wefact-api-client with dependencies
ext-json Version *
guzzlehttp/guzzle Version ^7.0
illuminate/http Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0