Download the PHP package engency/resource-controllers without Composer

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

Laravel Resources

Don't waste valuable time on writing basic CRUD operations for your Laravel application.

Ideology

Most CRUD operations are very straight-forward, especially when conforming to the REST design. As long as a few basic rules are met, generic logic can do the trick.

  1. Middleware authorizes users for operations on resources
  2. The controller determines the scope
  3. Rules validate input before storing and updating resources
  4. Rules make sure clients will only receive the attributes they are authorized to see

For applications with both an API and 'general' webinterface, you ideally just want a single controller performing the basic crud operations on a resource. Therefore, generic logic should be able to construct responses in both HTML and JSON format.

Requirements

Installation

Alongside this package, the engency/eloquent-formatting and engency/laravel-model-validation package will be installed.

Usage

The most basic setup could look as following;

The controller

The model

Html response

The controller will find for the following views;

Within the index.blade.php file, the $items variable will be present by default. The index.blade.php file could look as following;

Any page showing a resource (show and edit) have access to the resource. The name of the variable is the name of the resource, in camel case. E.g., 'StreetSign' would be '$streetSign'. The show.blade.php file could look like this;

In addition to that, the controller uses specific error pages;

JSON response

Response for the index call

Contributors

License

This plugin is licenced under the MIT license.


All versions of resource-controllers with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
illuminate/http Version ^8.0|^9.0
illuminate/routing Version ^8.0|^9.0
illuminate/database Version ^8.0|^9.0
illuminate/view Version ^8.0|^9.0
engency/eloquent-formatting Version ^0.2.0
engency/laravel-model-validation Version ^0.2.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 engency/resource-controllers contains the following files

Loading the files please wait ....