Download the PHP package mixerapi/cakephp-rest without Composer

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

MixerApi REST

Latest Version on Packagist Build Coverage Status MixerApi CakePHP Minimum PHP Version

This plugin gets your API project up and going quickly by creating routes for you.

This plugin assumes you have already created models and controllers. For help with the latter check out MixerApi/Bake. Check the official RESTful routing documentation for handling advanced routing scenarios not covered by this plugin.

Read more at MixerAPI.com.

Installation

!!! info "" You can skip this step if MixerAPI is installed.

Alternatively after composer installing you can manually load the plugin in your Application:

AutoRouter

Creating routes is already pretty easy, but AutoRouter makes building CRUD routes effortless. This is great if you are just getting started with building APIs in CakePHP.

In your routes.php simply add \MixerApi\Rest\Lib\AutoRouter:

This will add routes for CRUD controller actions (index, add, edit, view, and delete). If your controller does not have any CRUD methods, then the route will be skipped. AutoRouting works for plugins too:

Create Routes

While AutoRouter makes life easy, it must scan your controllers to build RESTful resources. This has a slight performance penalty. No worry, you can use mixerapi:rest route create to code your routes for you. This will write routes directly to your routes.php file.

Use --prefix to specify a prefix:

Use --plugin for plugins:

To perform a dry-run use the --display option:

For non-CRUD routes, sub-resources, and advanced routing please reference the CakePHP RESTful routing documentation

List Routes

This works similar to bin/cake routes but shows only RESTful routes and improves some formatting of information.

To limit output to a specific plugin use the --plugin option:

CRUD HTTP Status Codes

The default status codes are:

Action Status Code
index 200
view 200
add 201
edit 200
delete 204

To change these load a MixerApi.Rest.crud.statusCodes configuration:

See the CakePHP documentation on loading configuration files


All versions of cakephp-rest with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
cakephp/cakephp Version ^4.2
nikic/php-parser Version ^4.8
thecodingmachine/class-explorer Version ^1.1
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 mixerapi/cakephp-rest contains the following files

Loading the files please wait ....