Download the PHP package lucadello91/laravel-active without Composer

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

Laravel-Active

Packagist Version Total Downloads

Laravel helper that detects active navigation menu items and applies bootstrap classes. This is an implementation of https://github.com/laravelista/Ekko. In this implementation, you can use it with resouce name too.

Installation

First, pull in the package through Composer.

And then, if using Laravel 5 or 4, include the service provider within app/config/app.php.

And, for convenience, add a facade alias to this same file at the bottom:

Usage

You would most likely use this package in your navbar partial like so:

API

As the second parameter to any method, you can pass the value you want to get returned if there was a match. By default this is active which is Bootstrap default.

As the third parameter to any method, you can pass the value you want to get returned if there wasn't a match. By default this is empty string.

isActiveRoute($routeName, $active = "active", $notActive = "")

Compares given route name with current route name.

isActiveRouteResourceName($resourceName, $active = "active", $notActive = "")

Compares given resource name with current Route::Resource name.

isActiveURL($url, $active = "active", $notActive = "")

Compares given URL with current URL.

isActiveMatch($string, $active = "active", $notActive = "")

Detects if the given string is found in the current URL.

areActiveRoutes(array $routeNames, $active = "active", $notActive = "")

Compares given array of route names with current route name.

areActiveRoutesResourcesNames(array $resourcesNames, $active = "active", $notActive = "")

Compares given array of resource names with current Route::Resource name.

areActiveURLs(array $urls, $active = "active", $notActive = "")

Compares given array of URLs with current URL.


All versions of laravel-active with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
illuminate/support Version ~4.0|~5.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 lucadello91/laravel-active contains the following files

Loading the files please wait ....