Download the PHP package mcordingley/breadcrumbs without Composer

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

Breadcrumbs

Build Status Code Climate Code Climate

Installation and Configuration

Breadcrumbs is a simple plugin for Laravel to DRY up your breadcrumb routes and names. Start by installing it through Composer.

The package automatically registers its service provider and facade, so the only remaining step is to publish the configuration and sample breadcrumb definition file.

This will create config/breadcrumbs.php and resources/breadcrumbs.json. If you are using the default settings, there is no need to alter the configuration file or create new entries in your .env file.

The JSON file contains your individual breadcrumb entries, with the routes as keys. Each entry must have a title attribute and if the page belongs under another page then it should also have a parent attribute with the route of the parent page. The library uses this to recursively find previous breadcrumbs from the current page.

If an entry in the JSON file contains the pattern {foo}, the text is replaced by a property foo that you pass into the breadcrumb when making it. This pattern also supports dotted notation to pull nested properties.

By default, the breadcrumbs are formatted for use with Bootstrap. If you require a different format, set BREADCRUMBS_VIEW in your .env file with the name of whatever view you wish to use instead.

Usage

Within your views, simply call make on the Breadcrumb facade with your crumb path and optionally any parameters required to format the path and title. As the output is a string and will contain HTML, you will want to use the unescaped {!! !!} tags to output your crumbs. All values injected into the output should already be escaped by the template view.

{!! Breadcrumb::make('/foo/{foo.id}/edit', ['foo' => ['id' => 4, 'name' => 'Four']) !!}


All versions of breadcrumbs with dependencies

PHP Build Version
Package Version
Requires illuminate/config Version ^5.7
illuminate/support Version ^5.7
illuminate/view Version ^5.7
ext-json Version *
php Version ^7.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 mcordingley/breadcrumbs contains the following files

Loading the files please wait ....