PHPackages                             nobox/lazy-strings-laravel - 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-laravel

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

nobox/lazy-strings-laravel
==========================

Laravel 5 service provider for LazyStrings.

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

Since Jan 7Pushed 10y ago2 watchersCompare

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

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

Lazy Strings for Laravel
========================

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

Laravel 5 service provider for LazyStrings.

[![Build Status](https://camo.githubusercontent.com/9e7e60de2f93e45c42fb5056395733d2cb88c8d68184e04e0b6ccf6018f744ff/68747470733a2f2f7472617669732d63692e6f72672f4e6f626f782f6c617a792d737472696e67732d6c61726176656c2e7376673f6272616e63683d312e32)](https://travis-ci.org/Nobox/lazy-strings-laravel)

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

[](#installation)

Add Lazy Strings to your composer.json file.

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

Laravel versions
----------------

[](#laravel-versions)

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

Laravel versionService Provider version to use5.0`1.0.*`5.1`1.1.*`5.2`1.2.*`Register Lazy Strings
---------------------

[](#register-lazy-strings)

Register Lazy Strings service provider in the `providers` array located in `config/app.php`

```
'providers' => [
    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 vendor: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

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

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 ~0 days

Total

6

Last Release

3777d ago

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

1.1.x-devPHP &gt;=5.5.9

### Community

Maintainers

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

---

Tags

laravelspreadsheetgoogledocs

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

2.8k24.8M48](/packages/barryvdh-laravel-snappy)[laravel/ui

Laravel UI utilities and presets.

2.7k134.9M601](/packages/laravel-ui)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[cybercog/laravel-clickhouse

ClickHouse migrations for Laravel

163166.8k](/packages/cybercog-laravel-clickhouse)

PHPackages © 2026

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