Download the PHP package upon/mlang without Composer

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

High-Performance Multi-Language Package for Laravel

Build Status License

This package is a high-performance solution designed to provide efficient multi-language support for Laravel applications. It offers robust features and optimizations to ensure fast and reliable language management, making your application accessible to a global audience without sacrificing performance.

Features

Notice

This package will add two extra columns to the model you will use, row_id and iso. The package will use the row_id as id, to grep the right row from the db.

This package requires the following package.

Installation

1 - Install the package using Composer:

2 - Publish the package configuration and language files:

3 - Configure the package by modifying the config/mlang.php file according to your requirements.

You can specify the supported locales, default locale, models, and other options.

4 - Configure in your mlang config file the needed model for translations.

5- Replace the default extended Model with the MlangModel.

6 - Run the migration command to migrate the new columns, to the added models.

Managing Translations to existing records

To manually set the language for a user, you can use the setLocale() method:

Usage

To find a record from db by id, you can use the following. \ This will get the translated record based on the current language has been used by your application.

The trWhere method will work like the normal where but will map the id to row_id column to be able selecting the current language. This will return a build, so you can chain on it with other query.

Contributing

Contributions are welcome! If you encounter any issues, have suggestions, or want to contribute to the package, please create an issue or submit a pull request on the package's GitHub repository.

License

This package is open-source software licensed under the MIT license. Feel free to use, modify, and distribute it as per the terms of the license.

Credits

This package was developed by Reymon Zakhary. Special thanks to the Laravel community for their support and inspiration.

Contact

If you have any questions or need further assistance, you can reach out to the package maintainer at [email protected].


All versions of mlang with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-filter Version *
illuminate/database Version ^10.13|11.*
illuminate/support Version ^10.13|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 upon/mlang contains the following files

Loading the files please wait ....