PHPackages                             thinktomorrow/squanto - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. thinktomorrow/squanto

ActiveLibrary[Localization &amp; i18n](/categories/localization)

thinktomorrow/squanto
=====================

Text manager for static laravel translations during and after development

5.1.0(3mo ago)042.3k↓60.8%1[3 issues](https://github.com/thinktomorrow/squanto/issues)1MITPHPPHP &gt;=8.3CI failing

Since Nov 17Pushed 3mo ago5 watchersCompare

[ Source](https://github.com/thinktomorrow/squanto)[ Packagist](https://packagist.org/packages/thinktomorrow/squanto)[ Docs](https://github.com/thinktomorrow/squanto)[ RSS](/packages/thinktomorrow-squanto/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (20)Versions (52)Used By (1)

squanto
=======

[](#squanto)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a63731965a9b873f03a9e5db9f6462c851bf3972288fc62eed921178b24c6778/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7468696e6b746f6d6f72726f772f737175616e746f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/thinktomorrow/squanto)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/56609196c01f264565f448695ba7f9a84d33c39570983e21c91023f485c788c3/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7468696e6b746f6d6f72726f772f737175616e746f2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/thinktomorrow/squanto)[![Coverage Status](https://camo.githubusercontent.com/64c15200c86006bc652531f5ba2dd91ff81a29ecd1266f6ef39bd96aa9f17b63/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f7468696e6b746f6d6f72726f772f737175616e746f2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/thinktomorrow/squanto/code-structure)[![Quality Score](https://camo.githubusercontent.com/58c83b2e97dae00a85ff8c82f3c53e39a14005aabc8c619feb0a37f8ef5350a0/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7468696e6b746f6d6f72726f772f737175616e746f2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/thinktomorrow/squanto)[![Total Downloads](https://camo.githubusercontent.com/3db162a0b5e8e772e6a835716fb56cb5417a689beab43b6f94a300223a38b878/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7468696e6b746f6d6f72726f772f737175616e746f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/thinktomorrow/squanto)

Manage the static translations of your Laravel application during and after development. Squanto, its name derived from one of the first [Native Indian interpreters](https://nl.wikipedia.org/wiki/Squanto), is an opinionated way to manage the translations in database.

**NOTE: This package is still in development and the api will be subject to change. That being said, please do try this package out as feedback is much appreciated!**

Requirements
------------

[](#requirements)

- php &gt;= 7.4.7
- Laravel &gt;= 8.0

Install
-------

[](#install)

Via Composer

```
$ composer require thinktomorrow/squanto
```

Setup
-----

[](#setup)

The service providers of the package will be discovered automatically by Laravel. Note that there are two providers: one general package service provider but also a separate one for the Manager browser UI.

Run the migrations. This will add a table called `squanto_lines` to your database.

```
$ php artisan migrate
```

Next, publish the config file.

```
    php artisan vendor:publish --tag=squanto-config
```

In the config, set the different locales you'll wish to maintain via squanto. Most of the other config settings are sensible defaults and should work fine.

Admin interface
---------------

[](#admin-interface)

### routes

[](#routes)

Add the following routes. These are the route definitions for viewing and editing the translations. Make sure you'll add the necessary authentication middleware.

```
Route::get('translations/{id}/edit', [\Thinktomorrow\Squanto\Manager\Http\ManagerController::class, 'edit'])->name('squanto.edit');
Route::put('translations/{id}', [\Thinktomorrow\Squanto\Manager\Http\ManagerController::class, 'update'])->name('squanto.update');
Route::get('translations', [\Thinktomorrow\Squanto\Manager\Http\ManagerController::class, 'index'])->name('squanto.index');
```

### Wysiswyg editor

[](#wysiswyg-editor)

The 'redactor' editor is required so you'll need to include the css and js assets. This is not provided since you'll need a licence. Feel free to switch editors. The textareas that require a wysiwyg are assigned the `redactor-editor` class.

Usage
-----

[](#usage)

The following console commands are available for the developer.

```
# Push all language lines to the database. Existing database values will remain untouched.
$ php artisan squanto:push

# Remove database lines that are no longer present in the language files.
$ php artisan squanto:purge

# Check if your database lines are up to date, and if a push or purge command is advised.
$ php artisan squanto:check

# Rebuild the database cache.
$ php artisan squanto:cache
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Security
--------

[](#security)

If you discover any security related issues, please email to  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Ben Cavens](https://github.com/bencavens)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance80

Actively maintained with recent releases

Popularity28

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity91

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 93% of commits — single point of failure

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

Recently: every ~109 days

Total

46

Last Release

104d ago

Major Versions

0.7.1 → 1.0.0-beta2021-06-23

1.0.0 → 2.0.02021-12-14

2.0.1 → 3.0.02022-06-13

3.0.3 → 4.0.02025-01-08

4.0.0 → 5.0.02025-02-25

PHP version history (8 changes)0.1.1PHP ~5.6|~7.0

0.3.0PHP &gt;=7.0

0.4.0PHP &gt;=7.1

0.7.0PHP &gt;=7.2

0.7.1PHP &gt;=7.3

1.0.0-betaPHP &gt;=7.4.7

2.0.0PHP &gt;=8.1

4.0.0PHP &gt;=8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/497668?v=4)[Ben Cavens](/maintainers/BenCavens)[@BenCavens](https://github.com/BenCavens)

---

Top Contributors

[![BenCavens](https://avatars.githubusercontent.com/u/497668?v=4)](https://github.com/BenCavens "BenCavens (172 commits)")[![yinx](https://avatars.githubusercontent.com/u/1022847?v=4)](https://github.com/yinx "yinx (13 commits)")

---

Tags

thinktomorrowsquanto

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

### Embed Badge

![Health badge](/badges/thinktomorrow-squanto/health.svg)

```
[![Health](https://phpackages.com/badges/thinktomorrow-squanto/health.svg)](https://phpackages.com/packages/thinktomorrow-squanto)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[illuminate/queue

The Illuminate Queue package.

21332.6M1.6k](/packages/illuminate-queue)[api-platform/laravel

API Platform support for Laravel

58171.4k14](/packages/api-platform-laravel)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)

PHPackages © 2026

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