Download the PHP package asahasrabuddhe/laravel-api without Composer

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

Laravel API

A powerful package designed to make developing APIs very easy. This package takes care of all the boiler-plate code to provide support for routes, controller methods and associated logic out of the box.

Please note, this package is still in development and the documentation below is subject to change in ways which can make it incompatible with previous versions. Please DO NOT use in production until 1.0 release.

Installation

The package is currently under development and hence is not available on composer. Please use the following method to install and help build this package.

Clone the repository inside your Laravel installation as follows:

Add the following lines in your composer.json file to help install the package

Then, add the following lines in the require section of your composer file and run composer update.

You are now ready to use the package.

Basic Usage

  1. To enable using this package, replace the following:

    a. Models: Replace all instances of use Illuminate\Database\Eloquent\Model; with use Asahasrabuddhe\LaravelAPI\BaseModel;. For the Laravel default user model, replace use Illuminate\Foundation\Auth\User as Authenticatable; with use Asahasrabuddhe\LaravelAPI\BaseUser as Authenticatable;

b. Controllers: Add the following line to the top of your controller: use Asahasrabuddhe\LaravelAPI\BaseController as Controller

2.Routing: Please define the routes as following in routes/api.php file:


All versions of laravel-api with dependencies

PHP Build Version
Package Version
No informations.
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 asahasrabuddhe/laravel-api contains the following files

Loading the files please wait ....