Download the PHP package geeklabs/ci4-breadcrumbs without Composer

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

code score code grade

CI4-Breadcrumbs

Simple breadcrumb library for Codeigniter 4

V3.0 Coming Soon

With support for generating breadcrumbs for the major css frame works.

V2.0.9 Released

Version 2.0.9 has had a few major changes. Mainly on how you install the library. The entire library has been re-packaged and now has support to publish the core file to your application.

The publishing command will create a new directly called 'modules' within your app folder. Why 'modules' ? Because we plan on releasing several easy to install modules that can be installed and keeps your application structure neat and organised.

You now have the options of either manually building your breadcrumbs or using the auto builder. The auto builder takes your URI string and breaks it down into a bootstrap breadcrumb.

We have also added the option to build your breadcrumbs using the awesome HalfMoon CSS framework. More CSS frameworks will be added in V3.0

Install Via Composer

Then run

You will then be asked what css frame work you are using. Please make your selection and hit enter

At the moment you have the option of Bootstrap or the awesome HalfMoon framework. More frameworks will be added in V3.0

Load into controller

If you dont want to publish to your project and would prefer to keep the library in your 'vendors' folder you can omit the 'php spark breadcrumbs:publish' command and use the namespace :

If you dont publish to your project and are calling the library from the vendors folder you will need to modify the config file located at 'vendor/geeklabs/ci4-breadcrumbs/src/config/config.php' manually to select the correct css framework.

Usage

Out of the box breadcrumbs are set up using Bootstrap styles ie.

If you want to override these styles, add additional classes etc you can do that in the __construct function of Breadcrumbs.php

More CSS framework support is being added in v3.0. If you have a specific framework you want added please submit an issue and we will add it.

To use the library first load it into your controller

Create an instance

Auto Build

If you want simple breadcrumbs to auto build the breadcrumbs for you based on your URL you can do so by calling

Then simply echo it out in your view

Done! That simple.

Well almost. Now your breadcrumbs are being generated automatically based on your URI you need to make some extra conciderations when you are building out your routes. For example if you have a route like

your breadcrumb will be

So admin and customer must also have a route set for them.

If you want your breadcrumbs to remain readable you can add a - in your URI segement to force a space ie

Manual Build

If you want a little bit more control over your breadcrumbs you can still build them manually.

Build your breadcrumbs

ensure to include the / before your url

Build the breadcrumbs using

Pass the data to your view and then

Example controller :


All versions of ci4-breadcrumbs with dependencies

PHP Build Version
Package Version
Requires php Version ^8.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 geeklabs/ci4-breadcrumbs contains the following files

Loading the files please wait ....