Download the PHP package ufo-tech/petrol-prices without Composer
On this page you can find all versions of the php package ufo-tech/petrol-prices. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ufo-tech/petrol-prices
More information about ufo-tech/petrol-prices
Files in ufo-tech/petrol-prices
Download ufo-tech/petrol-prices
More information about ufo-tech/petrol-prices
Files in ufo-tech/petrol-prices
Vendor ufo-tech
Package petrol-prices
Short Description Library to fetch and cache petrol prices from public resources.
License MIT
Package petrol-prices
Short Description Library to fetch and cache petrol prices from public resources.
License MIT
Please rate this library. Is it a good library?
Informations about the package petrol-prices
Fuel Price Service
Description
Fuel Price Service
is a PHP library for fetching and caching up-to-date fuel prices from various providers.
It supports PSR-compliant interfaces for better integration into modern PHP projects.
Features
- Fetch fuel prices from providers via API.
- Automatic caching with customizable TTL.
- Easy addition of new data providers through interfaces.
- Exception handling for errors during data retrieval.
Installation
Install the library via Composer:
Usage
Basic Example
Usage Without Caching
Usage with Custom TTL
Extending
To add a new provider, implement the IFuelPriceProvider
interface:
Testing
Run tests using PHPUnit:
License
This project is licensed under the MIT License. See the LICENSE file for details.
All versions of petrol-prices with dependencies
PHP Build Version
Package Version
The package ufo-tech/petrol-prices contains the following files
Loading the files please wait ....