varuns/php-sleep

An object-oriented PHP library for a simple REST service

v1.11.2 2022-12-31 06:52 UTC

README

License Packagist Version Buy us a tree

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 as the hosting platform and 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 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.
  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. If you use it in production, then we ask that you buy the world a tree to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.