Download the PHP package mirko-pagliai/cakephp-essentials without Composer

On this page you can find all versions of the php package mirko-pagliai/cakephp-essentials. 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 cakephp-essentials

cakephp-essentials

codecov

Various classes and utilities useful for various CakePHP projects.

Creates links to assets

In your composer.json, add the post-update-cmd command event:

See Composer documentation.

Or run the commands directly in the shell:

It can also be useful to launch the command:

Extends the View

If necessary, you can rewrite the default helpers by implementing the initialize() method and calling parent::initialize() before adding your own helpers.

Add some basic assets to layout

You can consider adding some key assets to your layout, depending on your needs:

Css:

Scripts:

Using Tooltips and Popovers

Several helper methods support tooltips and popovers and can generate them automatically.

Please refer to the Bootstrap documentation before using them (here and here).

Keep in mind that: 1) both depend on the third-party library Popper, which you need to include, or you can use bootstrap.bundle.min.js which contains Popper; 2) you will need to initialize both, as indicated in the documentation.
You can include webroot/js/enable-popovers.min.js and webroot/js/enable-tooltips.min.js files in yourt layout, which will do it automatically:

How to use Bake templates

In your config/bootstrap.php file:

Or you can use the --theme option (or --t) with Cake/Essentials value.
Example:

See also CakePHP Bake 2.x Cookbook.

Sets the default locale date and time format

For example, in your bootstrap.php:


All versions of cakephp-essentials with dependencies

PHP Build Version
Package Version
Requires php Version >=8.4
cakephp/cakephp Version ^5.2
axllent/jquery Version ~3.7
friendsofcake/bootstrap-ui Version ^5.1.1
moment/moment Version ^2.30
twbs/bootstrap Version ~5.3
twbs/bootstrap-icons Version ^1.11
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 mirko-pagliai/cakephp-essentials contains the following files

Loading the files please wait ....