Download the PHP package devsquared/unitconvert-laravel without Composer
On this page you can find all versions of the php package devsquared/unitconvert-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download devsquared/unitconvert-laravel
More information about devsquared/unitconvert-laravel
Files in devsquared/unitconvert-laravel
Package unitconvert-laravel
Short Description UnitConvert API Wrapper for Laravel
License MIT
Homepage https://unitconvert.io
Informations about the package unitconvert-laravel
Convert/Compare Units of Measurement in Laravel
With the UnitConvert.io wrapper for Laravel, you can quickly and easily compare and convert units of measurement programmatically.
This package was created and developer by DevSquared - a consultant and development agency located in Pittsburg, KS, USA. Check out our website to learn more information about us.
Installation
UnitConvert requires an API key to use this wrapper. You can sign up for a free account today and get started. This package can be installed through Composer.
composer require devsquared/unitconvert-laravel
In Laravel 5.5 and above, the package will autoregister the provider and the alias. For Laravel 5.4 and below, you must install the provider and the alias.
Next, you will need to add your API key to the config. You can add it to your .env
file as
UNITCONVERT_API_KEY=
Optionally, you can publish the config file of this package with this command:
php artisan vendor:publish --provider="DevSquared\UnitConvert\UnitConvertServiceProvider"
Usage
The UnitConvert database contains variants as people use the system. Commonly misspellings, abbreviations, and full words are all excepted strings in addition to the measurement value. Below is an example of how to compare and convert a unit of measurement(s).
Here is an example use case for the convert
function:
Changelog
Please see [the changelog]() for more information on what has changed recently.
Using this? Let us know!
We really enjoy seeing our work being used in production environments. If you decide to implement this wrapper, feel free to let us know and share your work. You can send us an email on our website: https://dev-squared.com
License
The MIT License (MIT). Please see the License File for more information.