https://github.com/varunsingh87/php-sleep
An object-oriented PHP library for a simple REST service
https://github.com/varunsingh87/php-sleep
hacktoberfest php php-library vercel-php
Last synced: 9 months ago
JSON representation
An object-oriented PHP library for a simple REST service
- Host: GitHub
- URL: https://github.com/varunsingh87/php-sleep
- Owner: varunsingh87
- License: mit
- Created: 2020-11-01T01:14:00.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-12-31T06:52:48.000Z (over 3 years ago)
- Last Synced: 2024-11-28T18:11:27.872Z (over 1 year ago)
- Topics: hacktoberfest, php, php-library, vercel-php
- Language: PHP
- Homepage: https://developer.borumtech.com/Sleep
- Size: 46.9 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP Sleep
[](LICENSE)
[](https://packagist.org/packages/varuns/php-sleep)
[](https://plant.treeware.earth/varunsingh87/php-sleep)
An object-oriented PHP library for a simple REST service
PHP Sleep is a PHP library for creating JSON-based REST APIs that interact with a MySQL database.
## Getting Started
The library uses PHP's `$_ENV` superglobal to access the environmental variables.
For this reason, PHP Sleep is only guaranteed to work when using [Vercel](vercel.com/) as the hosting platform and [vercel-php](https://github.com/juicyfx/vercel-php) as the runtime. If you have not already, switch to Vercel and vercel-php and make sure your `now.json` file is valid.
## Usage
1. Make sure [Composer](https://getcomposer.org/) is installed
2. Run `composer require varuns/php-sleep`
## Contributing
So you'd like to contribute to the PHP Sleep library? Excellent! Thank you very much. I can absolutely use your help. Follow the steps below:
1. Read [the contributing guidelines](CONTRIBUTING.md).
2. Open an issue or pull request preferably using an existing template
## License
PHP Sleep is 100% free and open-source, under the MIT license. You may use it however you please.
This package is [Treeware](https://treeware.earth). If you use it in production, then we ask that you [**buy the world a tree**](https://plant.treeware.earth/varunsingh87/php-sleep) to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.