Download the PHP package sakadigital/api without Composer

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

Rest Api Structure for Laravel

Build Rest Api with laravel Php Framework. This package also genrate automaticly documentation for your API based Api controller docblock and test api function.

Features

Installation

Require this package with composer:

After updating composer, add the ApiServiceProvider to the providers array in config/app.php

and also add the facades

Copy the package resource to your application with the publish command:

by run command vendor:publish we will copy folder and file as following:

And you are ready to build your API.

Using The Package

If you finish installation process above, by default your api is active and now you can checkout your api by GET http://yourdomain.com/api, and also documentation by GET http://yourdomain.com/api/doc.

creating controller

Your controller is your documentation, so we sugest you to follow some our standard to make controller file for documentation page.

Class Name
Function

each function must have a description, param, return, and error. example:

in @param contain information about paramter, description and validation rule that sparated by |, and in @return also contain return type or name and description of function return. @error is special error that function made, you can give the information to the error.

using versioning

if you will make your api with many version create folder inside you api namespace :

place your routes.php in each version and create Controllers folder in each version and place your contorller and register your api version bellow as following:

your version prefix will placed in second url prefix http://yourdomain.com/{api-prefix}/{version-prefix}/

Routing

this package will automaticly append prefix to routes as api config file

test by GET http://yourdomian.com/api/`test', if you use version v1, GET http://yourdoumain/api/v1/test


All versions of api 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 sakadigital/api contains the following files

Loading the files please wait ....