Download the PHP package pwweb/localisation without Composer
On this page you can find all versions of the php package pwweb/localisation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pwweb/localisation
More information about pwweb/localisation
Files in pwweb/localisation
Package localisation
Short Description Localisation package for Laravel 6
License MIT
Homepage https://github.com/pwweb/localisation
Informations about the package localisation
Laravel Localisation Package
Localisation: C3P0 for Laravel. Take a look at contributing.md to see a to do list.
Installation
Via Composer run the following:
Pre-requisites
The package assumes a standard Laravel installation if the bundled default contollers for the entities are to be used. The bundled controllers extend from App\Http\Controllers\Controller
. If other, custom base controllers are used as part of the installation, refer to Customizing.
Configuration
Customizing
The package provides the following tags for publishing individual components for customizing:
Tag | Description |
---|---|
pwweb.localisation.config |
Publish the configuration files to e.g. adjust database table names. |
pwweb.localisation.migrations |
Publish the migration file(s) to make alterations to the database tables. |
pwweb.localisation.language |
Publish the language files to make adjustments to the translation strings. |
pwweb.localisation.views |
Publish the view files to make adjustments to the overall structure of the views. |
Default and Fallback Language
It is recommended to change your app.php
to use both the ISO-639-1 ISO Language Code as well as the ISO-3166 ISO Country Code. This can be achieved by changing the following two variables:
Usage
Addresses
The package provides a trait HasAddresses
which can be used to allow models to be associated with addresses.
Language Switcher
The localisation package provides a language switcher that can easily be added to blade templates as follows (note: the <div>
is exemplary):
GraphQL
The package provides a graphql.schema
file for use within your parent project. This can be included in your primary schema
file as follows:
Note: don't forget to update the vendor path should yours be in a different location, relative to your primary schema file.
FAQs
During install via composer you get the following messages:
This is due to the command php artisan config:cache
has been run. We suggest you delete the cache file bootstrap/cache/config.php
and then run composer dump-autoload
to be sure.
Change log
Please see the changelog for more information on what has changed recently.
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please use the issue tracker.
Credits
- PW*Websolutions
- All Contributors
License
Copyright © pw-websolutions.com. Please see the license file for more information.
All versions of localisation with dependencies
laravel/framework Version ^7.3.0
laracasts/flash Version ^3.0
pwweb/laravel-core Version ^0.1.0-beta
fzaninotto/faker Version ^1.9