Download the PHP package nobox/lazy-strings-lumen without Composer

On this page you can find all versions of the php package nobox/lazy-strings-lumen. 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 lazy-strings-lumen

Lazy Strings for Lumen

Build Status

Lumen service provider for LazyStrings.

Installation

Add Lazy Strings to your composer.json file.

Lumen versions

Here's a rundown on the version(s) of lazy strings that you can use on your current installed lumen version.

Lumen version Service Provider version to use
5.0 1.0.*
5.1 1.1.*
5.2 1.2.*

Register Lazy Strings configuration and service provider

You must enable facades. Uncomment the line $app->withFacades(); on bootstrap/app.php.

Register Lazy Strings configuration. Add this line on bootstrap/app.php. It can go anywhere, I would recommend to add it after $app->withEloquent();.

Finally, register Lazy Strings service provider, also in bootstrap/app.php.

Publish configuration and assets

This package uses some basic configuration and pretty CSS and JS from bootstrap.

Configuration

Configuration is pretty simple, each configuration item is described below. More details on how these work can be found in the Lazy Strings repo here.

How it works

Lazy Strings uses an id => value convention to access the copy, it generates an lazy.php file inside the language locale folder. You can see an example doc here: https://docs.google.com/a/nobox.com/spreadsheets/d/1V_cHt5Fe4x9XwVepvlXB39sqKXD3xs_QbM-NppkrE4A/edit#gid=0.

id value
foo Hello!
lazy LazyStrings
laravel PHP Framework

In this doc you can access the first row in your view like this:

Or in your controller like this:

Generate your strings

Each time you need to generate your strings just visit the specified strings-route in your configuration. The route will always be under the lazy prefix. For example: http://my-app.com/lazy/build-copy.

You can also use the included artisan command php artisan lazy:deploy. It will do exactly the same. This is perfect when you're deploying your application with Forge or Envoyer.

License

MIT


All versions of lazy-strings-lumen with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
illuminate/support Version 5.2.*
illuminate/console Version 5.2.*
nobox/lazy-strings Version ^5.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 nobox/lazy-strings-lumen contains the following files

Loading the files please wait ....