An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# PHP Sleep

[![License](https://img.shields.io/npm/l/@apidevtools/swagger-parser.svg)](LICENSE)
[![Packagist Version](https://img.shields.io/packagist/v/varuns/php-sleep?include_prereleases&color=green&style=plastic)](https://packagist.org/packages/varuns/php-sleep)
[![Buy us a tree](https://img.shields.io/badge/Treeware-%F0%9F%8C%B3-lightgreen)](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.