https://github.com/phillipmwaniki/unit-conversion
A php package to handle unit conversion
https://github.com/phillipmwaniki/unit-conversion
Last synced: 5 months ago
JSON representation
A php package to handle unit conversion
- Host: GitHub
- URL: https://github.com/phillipmwaniki/unit-conversion
- Owner: PhillipMwaniki
- License: mit
- Created: 2021-07-05T14:16:44.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-09T20:29:22.000Z (about 4 years ago)
- Last Synced: 2025-01-03T15:44:07.698Z (6 months ago)
- Language: PHP
- Size: 19.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
# Convert pounds to kilogrammes
[](https://packagist.org/packages/phillipmwaniki/unit-conversion)
[](https://github.com/phillipmwaniki/unit-conversion/actions?query=workflow%3Arun-tests+branch%3Amain)
[](https://github.com/phillipmwaniki/unit-conversion/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amain)
[](https://packagist.org/packages/phillipmwaniki/unit-conversion)---
This repo can be used as to scaffold a Laravel package. Follow these steps to get started:1. Press the "Use template" button at the top of this repo to create a new repo with the contents of this unit-conversion
2. Run "./configure-unit-conversion.sh" to run a script that will replace all placeholders throughout all the files
3. Remove this block of text.
4. Have fun creating your package.
5. If you need help creating a package, consider picking up our Laravel Package Training video course.
---This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
## Support us
[
](https://spatie.be/github-ad-click/Unit-Conversion)
We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).
## Installation
You can install the package via composer:
```bash
composer require phillipmwaniki/unit-conversion
```You can publish and run the migrations with:
```bash
php artisan vendor:publish --provider="Phillipmwaniki\UnitConversion\UnitConversionServiceProvider" --tag="unit-conversion-migrations"
php artisan migrate
```You can publish the config file with:
```bash
php artisan vendor:publish --provider="Phillipmwaniki\UnitConversion\UnitConversionServiceProvider" --tag="unit-conversion-config"
```This is the contents of the published config file:
```php
return [
];
```## Usage
```php
$unit-conversion = new Phillipmwaniki\UnitConversion();
echo $unit-conversion->echoPhrase('Hello, Spatie!');
```## Testing
```bash
composer test
```## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Credits
- [Phillip Mwaniki](https://github.com/PhillipMwaniki)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.