Download the PHP package marshmallow/multi-language without Composer

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

alt text

Marshmallow Pages

Deze package geeft de mogelijkheid om gemakkelijk pagina's te beheren in Laravel. Dit is eigelijk een verzameling van handinge composer packages van derde en samengevoegd om snel te kunnen hergebruiken.

Installatie

Run php artisan migrate to create the languages table where we will store the languages. Run php artisan marshmallow:resource Language MultiLanguage to create the Nova resources so you can add more languages if needed. Add MultiLanguageMiddleware to your app/Http/Kernel.php so the language that is picked by your visitor can be stored in a session and will be retreived on every request.

Migrate

If you have content in a table that needs to be made translatable, you can run the artisan command below: php artisan marshmallow:translate-resource Marshmallow\\Pages\\Models\\Page

Add the language switcher to Nova

Add the language tool to your NovaServiceProvider so you can switch the language you are working on. This is not required but is a good helper.

If you use this, you need to publish the config for this package so you can tell this package it can get the languages from the database. Run php artisan vendor:publish --provider="Digitalcloud\MultilingualNova\FieldServiceProvider" --tag=config. Run php artisan vendor:publish --provider="Spatie\Translatable\TranslatableServiceProvider" --tag=config. Next change source to database in config/multilingual.php. Next change database.model to Marshmallow\\MultiLanguage\\Models\\Language in config/multilingual.php. Next change fallback_locale to nl in config/translatable.php.

Prepare your models

First make sure you are able to create translations by updating your Nova resource.

Next update your model so we know which columns are translatable.

Config

In config.pages you should change use_multi_languages to true;

Usage

The route below will be implemented by default. You can use this route to change the current selected language.

TranslatableRoute trait

This trait will provide two methods.


All versions of multi-language with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4
digitalcloud/multilingual-nova Version ^2.0
marshmallow/helpers Version ^2.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 marshmallow/multi-language contains the following files

Loading the files please wait ....