Download the PHP package peaky-blind3rs/ip-address-interface without Composer
On this page you can find all versions of the php package peaky-blind3rs/ip-address-interface. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download peaky-blind3rs/ip-address-interface
More information about peaky-blind3rs/ip-address-interface
Files in peaky-blind3rs/ip-address-interface
Package ip-address-interface
Short Description IP Address Interface
License MIT
Informations about the package ip-address-interface
IP Address Interface Library for PHP
This library offers a standard interface to implement IP Geolocation and Threat Intelligence API in your PHP projects. It offers developers a way to craft various IP data adapter classes for their unique project requirements.
Requirements
- PHP 8.2 or higher
- psr/http-message 1.1 or higher
Installation
The package can be installed via Composer. Run the following command:
Usage
Using IPInfo Adapter
Or if you want to use IPData Adapter
If you want to use your own adapter, your adapter needs to implement \PeakyBlind3rs\IpAddressInterface\Interface\IpLookupInterface
And then add your adapter to class map and use it
Testing
To run the tests, execute:
Coding Standards
Check your code for PSR compliance:
Static Analysis
Analyze your code statically:
License
This project is licensed under the MIT License. Refer to the LICENSE.md file for further details.
Contributing
Please consult the CONTRIBUTING.md file for more information.
Acknowledgements
- Thanks to the PHP community for providing the language we cherish.
- Thanks to Composer for handling the package dependencies effectively.
Contact
- Have any issues? Report them via the project issue tracker.
- Got some enhancements in mind? Feel free to create a pull request or open an issue.
Happy coding!