Download the PHP package claudiojr96/pagetitle without Composer

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

Manage the Page Title in Blade views

Build Status Latest Stable Version Scrutinizer Code Quality License

Often, you'll find yourself in situations, where you want to have more to control how to set a page title for your different views. Although it is possible to yield your page title in a master view it can be a hassle to deal with the format like a delimeter usage or to append/prepend a default page title.

This package simplifies the process.

Installation

Begin by installing this package through Composer:

Laravel Users

If you are a Laravel user, then there is a service provider that need to add to your config/app.php file.

This package also provides a facade, which you may also register in your config/app.php as well if you want to use the facade in your controllers and views:

In Laravel 5.5, service providers and aliases are automatically registered. If you're using Laravel 5.5, you can skip these steps.

Version 2.0

If you still use PHP 7.0 or 5.6 you need to use version 1.0 of this package. Version 2.0 and above is only compatible with PHP 7.1 or newer.

Version 2.0 of this package is also compatible with Laravel 5.5 and newer.

Useage

To simple add a single page title, call the appropiate add() method with passing a string as a parameter:

You can also make use of the global pagetitle helper function.

To add multiple page title parts at once just pass an array as a parameter.

Add the pagetitle to a blade view

Now you can display the fully concatenated page title in your view. The best way is to use it in your master layout file.

To display the fully concatenated page title in reverse order just pass the reverse parameter.

The downward mode first concatenates all page title parts in reverse order and then appends the page name ( if set in options )

Defaults

If using Laravel, there are three configuration options that you'll need to worry about. First, publish the default configuration with the following command:

This will add a new configuration file to: config/pagetitle.php.

page_name

If you want you can enter your page name to this key if you want to append/prepend the name to your concatenated page title.

default_title_when_empty

This text will be used when there is are no page title parts in the collection.

delimiter

When you want to use a delimeter just update this key and add the string you want to use as an delimeter.

Change the configuration values

Each of the configuration parameters can be changed on the page title object instance with the correspondig setter methods:

Example usage:

To retrieve the current configuration values use the corresponding getter methods on the page title object instance:

License

View the license for this repo.


All versions of pagetitle with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
illuminate/support Version ^6.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 claudiojr96/pagetitle contains the following files

Loading the files please wait ....