Download the PHP package pion/laravel-support-controllers without Composer

On this page you can find all versions of the php package pion/laravel-support-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 laravel-support-controllers

Traits

Requirements

Install

Without Crumbs

composer require pion/laravel-support-controllers

With Crumbs

composer require pion/laravel-support-controllers
composer require atorscho/crumbs 2.2

URLTrait

Adds a new set of protected functions for the current controller. Enables getting the controller name with the namespace without the controllers namespace (for custom namespace overide the "getControllersRootNamespace" method). Also you can get current url, controllers action string for URL and controllers URL for given action.

Methods

getCurrentActionForName($action);
getCurrentActionURL($action, $parameters = []);
getControllerName();
getCurrentFullURL();

AbstractNavigationTrait

Loads the URLTrait and enables creating a navigation for a resource controller (or any controller). Support creating current page link, current page link with a link to a list page (index page), models name and link to detail action (or edit and etc). Samples of url can be:

Examples

/sites - call the createNavigation() without title Result: list page

/sites/create - call the createNavigation("New page"); Result: list page -> New page

/sites/1/edit - call the createNavigation("Edit", $object); Result: list page -> name -> Edit

/sites/1/edit - model has no detail view, call the createNavigation("Edit", $object); Result: list page -> name

etc.

Customizations

You can change some properties:

You can handle some states when the createNavigation is triggered:

beforeAddingListNavigation($title = null, $modelToShow = null)

Triggered before adding a list navigation. Called only if list page is supported

beforeAddingModelActionNavigation($model, $title = null)

Triggered before the model action is added (edit/show/etc)

addCrumbNavigationToList

Calls the addNavigation with list action

addCrumbNavigationForModel

Calls the addNavigation with given url and the model names, method must return bool if the navigation was added.

CrumbsNavigationTrait

Implements the Crumbs navigation with AbstractNavigationTrait trait


All versions of laravel-support-controllers with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version 5.*
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 pion/laravel-support-controllers contains the following files

Loading the files please wait ....