Download the PHP package chinpei215/cakephp-intlless without Composer

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

Intlless plugin for CakePHP

Intlless plugin is a plugin for CakePHP 3.x, which allows your application to work relatively well without intl extension.

Read this in other languages: English, 日本語

Installing CakePHP3

If you don't have intl installed, you might have trouble installing CakePHP3 itself. You can install it with zip file, or with composer by changing configuration.

Installing with zip file

Download a release of CakePHP (cakephp-3-x-y.zip), and extract it. Set suitable permissions on your logs directory, tmp directory and its subdirectories.

Installing with composer

Execute the following command to pretend you have intl extension.

After that, you can execute create-project.


Installing Intlless plugin

After installing CakePHP3, let's install Intlless plugin.

Installing with zip file

Download a release of Intlless plugin (Source code). After extracting it, put it into your plugins directory, as "Intlless".

Installing with git

If you want to install with git, execute the following command in your plugins directory.

Installing with composer

Execute the following command if you have not done it yet.

After that, you can install the plugin by the following command.


Setting up Intlless plugin

Once you put this plugin, you need to load it in your config/bootstrap.php, but it would be better to do it near the front part of the file as much as possible. Because it is necessary to replace Cake\I18n-namespaced classes before the original classes loaded. Normally, it is best to do it just after loading config/app.php.

Note that the boostrap option and the autoload option are set to true in the above example. Since Intlless plugin needs to execute bootstrapping to replace Cake\I18n-namespaced classes, and if you have installed it with zip, it is necessary to use the autoloading feature of CakePHP.

Even if you have installed it with composer, make sure to set the bootstrap option to true.

In addition, you need to modify some code in your application. First, find a line where an error is thrown if intl extension is not loaded, and comment it out.

If useLocaleParser() call is found in your config/bootstrap.php, also comment it out. Intlless plugin doesn't support the feature.

Installation is end with this. You will see your application works relatively well without intl extension.

Limitations

Limitation of messaging functions

__() or other messaging functions cannot parse complex message formats.

In addition, they don't support any localization features.

Limitation of date and time functions

Cake\I18n\Time will be an alias of Intlless\Time. Intlless\Time is a sub-class of Cake\Chronos\MutableDateTime contained in Chronos, with different constructor. So you cannot call any methods not defined in the parent class, such as i18nFormat(), timeAgoInWords(), nice() and so on.

The same can be said about Time helper. In addition, they don't support any localization features.

Cake\I18n\FrozenTime will be an alias of Intlless\FrozenTime. Intlless\FrozenTime is a sub-class of Cake\Chronos\Chronos with different constructor. So you cannot call any methods not defined in the parent class as well.

Cake\I18n\Date and Cake\I18n\FrozenDate will be an alias of Cake\Chronos\MutableDate and Cake\Chronos\Date, respectively.

Note that, CakePHP earlier than version 3.2, Cake\Chronos\MutableTime will be an alias of Carbon instead. Cake\I18n\FrozenTime will be undeclared.

Limitation of number functions

Cake\I18n\Number will be an alias of Intlless\Number. Intlless\Number is a small class that provides the following methods only.

You cannot call any other methods not listed in the above.

The same can be said about Number helper. In addition, they don't support any localization features.

Other limitations


All versions of cakephp-intlless with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.16
cakephp/cakephp Version ~3.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 chinpei215/cakephp-intlless contains the following files

Loading the files please wait ....