Download the PHP package diglabby/laravel-find-missing-translations without Composer

On this page you can find all versions of the php package diglabby/laravel-find-missing-translations. 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 laravel-find-missing-translations

Latest Version on Packagist Total Downloads Test Type coverage Psalm level

Find missing Laravel Translations

Artisan command to find missing translations. It takes a basic locale and finds missing keys/translations in other locales.

Package logo

Output example:

Output example

Installation

The package requires PHP 8.3 or higher and Laravel 12 or 13. For Laravel 10 or 11 use ^1.6.

Usage

Use the application locale as base and the application lang path (lang/ since Laravel 9, resources/lang/ before that):

The command exits with code 1 when a locale is missing a key or a whole translation file, so it can gate a CI build.

You can specify a base locale:

You can specify a list of locales to check:

You can specify a list of locales to exclude:

You can specify a relative or absolute path to the lang directory location:

The lang/vendor directory, where package translation overrides live, is skipped.

What is compared

Both translation formats:

A locale counts as declared when it has either a directory or a JSON file, and both formats are then expected of it. A locale with be.json but no be/ directory has translated none of the group keys, so the missing directory is reported, and the same holds the other way round. The base locale needs at least one of the two.

Contributing

Testing

Thanks

Inspired by VetonMuhaxhiri/Laravel-find-missing-translations


All versions of laravel-find-missing-translations with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/console Version ^12.0 || ^13.0
illuminate/support Version ^12.0 || ^13.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 diglabby/laravel-find-missing-translations contains the following files

Loading the files please wait ...