Download the PHP package fillup/apiaxle without Composer
On this page you can find all versions of the php package fillup/apiaxle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fillup/apiaxle
More information about fillup/apiaxle
Files in fillup/apiaxle
Package apiaxle
Short Description PHP library/module for interacting with ApiAxle APIs.
License GPL-2.0+
Homepage https://github.com/fillup/apiaxle
Informations about the package apiaxle
ApiAxle Module
Introduction
ApiAxle The Open Source API Management Platform
ApiAxle is a proxy that sits on your network, in front of your API(s) and manages things that you shouldn't have to, like rate limiting, authentication and caching. It's fast, open and easy to configure.
Requirements
Features / Goals / TODO
- [x] Readily consumable, configuration based, object oriented library
- [x] Support for Api objects
- [x] Support for Key objects
- [x] Support for Keyring objects
- [x] Set up continuous integration with Travis-CI: (https://travis-ci.org/fillup/apiaxle-module)
- [ ] Create objects to represent stats, charts, etc?
- [ ] Fix serialization of PHP boolean to string for ApiAxle API. Currently API wants string of either true or false, but serializing PHP boolean results in 0 or 1.
- [ ] Add support for new features in ApiAxle 1.11 to support capturing path statistics
Installation
Using Composer - Recommended
1) Edit your composer file to include:
2) Update composer install with
3) Make sure you are including the composer autoload file:
4) Use the library however you need. See examples below.
Usage Examples
1) Create a new API, create a new Key, give Key access to API
API Documentation
API documentation generated from phpDocs by apigen is available in the docs/ folder.
Using a Proxy
You can configure the library to use a proxy if needed for debugging or otherwise. I've used it with [Charles Proxy]() many times to debug my calls and responses from ApiAxle. To configure it to use a proxy, simply set these attributes in the configuration:
Using your own CA Certs
If you are running in an environment where you have your own CA and want to validate the certs, you can configure this library to specify where to find the CA info or a path to a folder with certs. This uses the curl_setopt features in PHP to set these. In order for them to work though, the ssl_verifypeer setting needs to be :
Contributing
If you are interested in contributing to this library and/or extending it please let me know, I'd love to work with others on this to help consider other use cases and design patterns.
Exceptions
100-199: Configuration Related Exceptions
200 - 299: API call related exceptions