Download the PHP package farhanwazir/makeresponse without Composer

On this page you can find all versions of the php package farhanwazir/makeresponse. 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 makeresponse

Make Response

This PHP library helps to generate global standard response in JSON and Array for client (API Client, POS Client, Web Client etc). It is not framework dependent, you are open to use it with any PHP project.

Why to use this library

Installation

Via composer command

Or add below line in your composer.json and run composer update command

Laravel & Lumen Configuration

Laravel user's

For Laravel user's can add below line in config/app.php

Do not close config/app, go down inside "aliases"

Lumen user's

For Lumen user's can add below line in bootstrap/app.php

Add alias as facade in laravel

Usage

You just need to call makeResponse() helper function to respond to request. Below listed available methods will help you to explorer MakeResponse.

Use via helper function

Get response example

Example 1: Get formatted response in array

Example 2: Get formatted response in json

Example 3: Verify formatted response to client

Example 4: Convert response in array

Example 5: Direct class call approach

Laravel and Lumen user's

You can also use above illustrated example and below is for Laravel and Lumen style:

Thank you for using


All versions of makeresponse with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
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 farhanwazir/makeresponse contains the following files

Loading the files please wait ....