PHPackages                             nobox/lazy-strings-lumen - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. nobox/lazy-strings-lumen

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

nobox/lazy-strings-lumen
========================

Lumen service provider for LazyStrings.

v1.2.0(10y ago)013MITPHPPHP &gt;=5.5.9

Since Jan 15Pushed 10y ago2 watchersCompare

[ Source](https://github.com/Nobox/lazy-strings-lumen)[ Packagist](https://packagist.org/packages/nobox/lazy-strings-lumen)[ Docs](https://github.com/Nobox/lazy-strings-lumen)[ RSS](/packages/nobox-lazy-strings-lumen/feed)WikiDiscussions 1.2 Synced 1mo ago

READMEChangelog (3)Dependencies (5)Versions (7)Used By (0)

Lazy Strings for Lumen
======================

[](#lazy-strings-for-lumen)

[![Build Status](https://camo.githubusercontent.com/3aa9638eb7f64588683653359cd44efec38f460b53ec891a839870f9226a8d0b/68747470733a2f2f7472617669732d63692e6f72672f4e6f626f782f6c617a792d737472696e67732d6c756d656e2e7376673f6272616e63683d312e32)](https://travis-ci.org/Nobox/lazy-strings-lumen)

Lumen service provider for LazyStrings.

Installation
------------

[](#installation)

Add Lazy Strings to your composer.json file.

```
composer require nobox/lazy-strings-lumen
```

Lumen versions
--------------

[](#lumen-versions)

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

Lumen versionService Provider version to use5.0`1.0.*`5.1`1.1.*`5.2`1.2.*`Register Lazy Strings configuration and service provider
--------------------------------------------------------

[](#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();`.

```
$app->configure('lazy-strings');
```

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

```
$app->register(Nobox\LazyStrings\LazyStringsServiceProvider::class);
```

Publish configuration and assets
--------------------------------

[](#publish-configuration-and-assets)

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

```
php artisan lazy:publish
```

Configuration
-------------

[](#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](https://github.com/Nobox/Lazy-Strings).

- `csv-url` Add the Google spreadsheet published url.

```
'csv-url' => 'http://docs.google.com/spreadsheets/d/1V_cHt5Fe4x9XwVepvlXB39sqKXD3xs_QbM-NppkrE4A/export?format=csv'
```

- `target-folder` This folder will be in your `storage` folder and it just saves a backup of your strings in `JSON` format. By default is `lazy-strings`.

```
'target-folder' => 'lazy-strings'
```

- `strings-route` This is the route that will be used to generate the strings. Visit `http://my-app.com/lazy/build-copy` and your strings will be updated. By default is `build-copy`. The route will always be under the `lazy` prefix.

```
'strings-route' => 'build-copy'
```

- `nested` Whether or not you wish your generated strings array to be nested.

```
'nested' => true,
```

- `sheets` Here you'll specify all the sheets in your Google doc.

```
'sheets' => [
    'en' => [0, 1626663029],
    'es' => 1329731586,
    'pt' => 1443604037
]
```

How it works
------------

[](#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](https://docs.google.com/a/nobox.com/spreadsheets/d/1V_cHt5Fe4x9XwVepvlXB39sqKXD3xs_QbM-NppkrE4A/edit#gid=0).

idvaluefooHello!lazyLazyStringslaravelPHP FrameworkIn this doc you can access the first row in your view like this:

```
trans('lazy.foo') // returns "Hello!"
```

Or in your controller like this:

```
Lang::get('lazy.foo'); // returns "Hello!"
```

Generate your strings
---------------------

[](#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
-------

[](#license)

MIT

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity62

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~10 days

Total

6

Last Release

3714d ago

PHP version history (2 changes)1.0.x-devPHP &gt;=5.4.0

v1.1.0PHP &gt;=5.5.9

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ce2b58ac5128f6b7bd2492f593f561a50b5de982f2add14548b9ae5a0b4e46c?d=identicon)[jonathantorres](/maintainers/jonathantorres)

---

Tags

lumenspreadsheetgoogledocs

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nobox-lazy-strings-lumen/health.svg)

```
[![Health](https://phpackages.com/badges/nobox-lazy-strings-lumen/health.svg)](https://phpackages.com/packages/nobox-lazy-strings-lumen)
```

###  Alternatives

[phpoffice/phpspreadsheet

PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine

13.9k293.5M1.2k](/packages/phpoffice-phpspreadsheet)[openspout/openspout

PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way

1.1k57.6M128](/packages/openspout-openspout)[laravel-lang/publisher

Localization publisher for your Laravel application

2167.7M24](/packages/laravel-lang-publisher)[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[avadim/fast-excel-laravel

Lightweight and very fast XLSX Excel Spreadsheet Export/Import for Laravel

4146.7k1](/packages/avadim-fast-excel-laravel)[k98kurz/pdf-lumen

compatibility fork of k98kurz/pdf (dompdf wrapper) for Laravel Lumen

103.9k](/packages/k98kurz-pdf-lumen)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
