Download the PHP package zhylon/megapi-client without Composer
On this page you can find all versions of the php package zhylon/megapi-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zhylon/megapi-client
More information about zhylon/megapi-client
Files in zhylon/megapi-client
Package megapi-client
Short Description This package can be used to interact with the MegAPI.
License MIT
Homepage https://github.com/Zhylon/megapi-client
Informations about the package megapi-client
The Zhylon MegAPI Client is a Laravel wrapper for MegAPI API, a platform that consolidates multiple APIs under a single API key.
Many developers struggle with managing multiple external APIs, each with its own authentication, documentation, and structure. MegAPI solves this problem by providing a unified interface where you only need one API key to access multiple services.
Why use MegAPI?
- One API key for all services
- Centralized API interface with a consistent structure
- Seamless Laravel integration
- Flexible extension: Register and use custom endpoints
- Less authentication overhead for multiple APIs
You are free to use this package, but please note that you need an active account on MegAPI to use the service.
The MegAPI is a service by Zhylon.net. It includes a lot of API Endpoints to other services. It allows you to call all those services with just one API key.
This packages does not provide any endpoints, it's just a wrapper for the API.
Installation
You can install the package via Composer:
Configuration
You can publish the config file with:
This is the contents of the published config file:
Usage
To register a new endpoint to the MegAPI, you can use the following code:
After you have registered the endpoint, you can use it like this:
Your ServerEndpoint should look like this:
So you only have to use the MegApiEndpoint-Interface and implement the handle-Method.
After that you can use the endpoint like shown above.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Security Vulnerabilities
If you've found a bug regarding security please mail [email protected] instead of using the issue tracker.
Support me
Credits
- TobyMaxham
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of megapi-client with dependencies
illuminate/http Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0