Download the PHP package workofstan/backyard without Composer
On this page you can find all versions of the php package workofstan/backyard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download workofstan/backyard
More information about workofstan/backyard
Files in workofstan/backyard
Package backyard
Short Description Library of useful functions and classes
License MIT
Homepage https://github.com/WorkOfStan/backyard
Informations about the package backyard
Library In Backyard
Collection of useful functions
Requirements
- PHP 5.3.0 or higher (i.e. not used [] instead of array() as this short syntax can be used only since PHP 5.4)
- workofstan/backyard:^4.1.2.2
php: >=7.4 <8.6 - workofstan/backyard:3.4.3:
php: >=5.3, <7.4
- workofstan/backyard:^4.1.2.2
Installation
You can use Composer or simply Download the Release
Composer
The preferred method is via composer. Follow the installation instructions if you do not already have composer installed.
Once composer is installed, execute the following command in your project root to install this library:
Finally, be sure to include the autoloader:
Download the Release
If you abhor using composer, you can download the package in its entirety. The Releases page lists all stable versions.
Download any file with the name backyard/archive/[TAG].zip for a package including this library and its dependencies.
Uncompress the ZIP file you download, and include the autoloader in your project:
Deployment
After the autoloader is included you may create the backyard object with default configuration:
Or you may configure it with following options:
Notes
NB: BackyardMysqli creates no Backyard->Mysqli object (as e.g. Backyard->Json does) because it is not used by LIB itself and more importantly user of LIB may create any number of those.
Example of usage:
class BackyardBriefApiClient
Very simple JSON RESTful API client. It just sends JSON and returns what is to be returned with few optional decorators and error logging.
sendJsonLoad- sends JSON and returns whatever is returned with second OPTIONAL parameter with HTTP verbGET,PUT,DELETEgetJsonArray- sends JSON and returns array decoded from response JSONgetArrayArray- encode array to a JSON and returns array decoded from response JSON