Download the PHP package dereuromark/cakephp-transifex without Composer

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

CakePHP Transifex Plugin

Build Status Coverage Status Minimum PHP Version License Total Downloads Coding Standards

A CakePHP 3.x plugin that works with Transifex and pulls/pushes translations. It uses the Transifex API v2.

Please note: New functionality has been tested against latest CakePHP 3.x version only. Please upgrade if possible.

Installation

Installing the plugin is pretty much as with every other CakePHP plugin.

Create an account at transifex.com and create/join a project and resources.

Put the information regarding project, user and password in your config file or your bootstrap

That's it. It should be up and running.

Usage

To get a list of supported resources for the current project:

cake Transifex.Transifex resources

To get a list of supported languages:

cake Transifex.Transifex languages

Statistics for a resource can be gathered using

cake Transifex.Transifex statistics

To actually update your Locale folder, use

cake Transifex.Transifex pull

It will prompt for language and resource (use * to import all).

A shortcut to import a specific language for a specific resource, you can also use

cake Transifex.Transifex pull -l {language} -r {resource}

The PO files will be stored in src/Locale/{locale}/LC_MESSAGES/{resource}.po. Using version control is highly recommended to quickly overview and confirm the changes made.

Advanced usage

You can pull reviewed translations only using --reviewed-only or -R:

cake Transifex.Transifex pull -R

To pull locales for a plugin you need to set --plugin or -p:

cake Transifex.Transifex pull -p Tools

They will then be stored in the plugin's Locale folder.

If you happen to have one primary project and several other (plugin or CakePHP core) projects, you can overwrite the config project setting using --project or -P:

cake Transifex.Transifex pull -P cakephp

Tip: If you want to dry-run it first, use -d -v. This will not modify your locale files but simulate the import.

Tips

You can use the auto-alias of Transifex.Transifex which is Transifex - or even a super-short t using custom aliasing.

Debugging

Use --debug to have more verbose debugging output when pushing via cURL.

Testing

When testing --debug enables live test mode and uses the actual API instead of mocking and fake JSON response files. Make sure you provide valid credentials in your tests/bootstrap.php for this. Also make sure those are not your live credentials to avoid data loss. You should use a dedicated test account here to be sure.

TODO

Disclaimer

Use at your own risk. Please provide any fixes or enhancements via issue or better pull request.


All versions of cakephp-transifex with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
cakephp/cakephp Version ~3.5
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 dereuromark/cakephp-transifex contains the following files

Loading the files please wait ....