Download the PHP package syscover/langlocale without Composer

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

NavTools package to Laravel 5.4

Total Downloads Latest Stable Version License

Installation

1 - From the command line run

2 - Register service provider, on file config/app.php add to providers array

3 - To publish package, you must type on console

4 - Register middlewares pulsar.navTools on file app/Http/Kernel.php add to routeMiddleware array

General configuration environment values

Set NAVTOOLS_URL_TYPE options on environment file .env

Set url type for you web, you have three types, lang, country or lang-country, for urls type lang:

you can work with this urls

for urls type country

you can work with this urls

for urls type lang-country

you can work with this urls

Set NAVTOOLS_LANGS options on environment file .env

Set countries available in your web

Set NAVTOOLS_COUNTRIES options on environment file .env

Set countries available in your web

Set NAVTOOLS_DEFAULT_COUNTRY options on environment file .env

Set default country for your web

Routing with NavTools

On app\Http\routes.php file use this closure to implement routes with translation

Route configuration

You have several url configuration options depends on the chosen NAVTOOLS_URL_TYPE parameter:

Write your routes with lang variable

Or set lang variable on your routes

Or set constant lang but country variable

Or use lang and country variables to get language value.

Get values in your application

You can get lang and country values with this helpers.

To set routes you need to add lang or country parameters depending on NAVTOOLS_URL_TYPE.

You can use a custom helper nt_route(), this helper inserts automatically variables lang and country, unless you specify these variables.

You can use redirect() helper without any trouble, we have extended Laravel core so that redirect()->route() does the same as nt_route().

If you want to change the language or the country you must use this helpers

License

The NavTools is open-sourced software licensed under the MIT license.


All versions of langlocale with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.4
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 syscover/langlocale contains the following files

Loading the files please wait ....