Download the PHP package mbarlow/laravel-response-helpers without Composer

On this page you can find all versions of the php package mbarlow/laravel-response-helpers. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-response-helpers

Author Source Code Latest Version Software License Build Status

A collection of helpers for returning a response from your API more expressively.

Installation

Simply require the package via composer into your Laravel API.

composer require mbarlow/laravel-response-helpers

No extra setup is required. The helper file is autoloaded via the "autoload" attributes of the composer.json file.

Usage

2xx Success

200 OK

201 Created

202 Accepted

204 No Content

3xx Redirection

301 Moved Permanently

302 Found

303 Found

307 Temporary Redirect

4xx Client Errors

400 Bad Request

401 Unauthorized

402 Payment Required

403 Forbidden

404 Not Found

405 Method Not Allowed

406 Not Acceptable

410 Gone

413 Payload Too Large

422 Unprocessable Entity

426 Upgrade Required

429 Too Many Requests

5xx Server Errors

500 Internal Server Errors

501 Not Implemented

502 Bad Gateway

503 Service Unavailable

504 Gateway Timeout

507 Insufficient Storage

Testing

If you wish to run the tests, clone out the repository

git clone [email protected]:mikebarlow/laravel-response-helpers.git

Change to the root of the repository and run composer install with the dev dependencies

cd laravel-response-helpers
composer install

A script is defined in the composer.json to run both the code sniffer and the unit tests

composer run test

Or run them individually as required

./vendor/bin/phpunit

./vendor/bin/phpcs --standard=PSR2 src

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-response-helpers with dependencies

PHP Build Version
Package Version
Requires illuminate/http Version ~5.0|~6.0|~7.0|~8.0|~9.0|~10.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mbarlow/laravel-response-helpers contains the following files

Loading the files please wait ....