Download the PHP package arnaldo-tomo/rotabonita without Composer

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

Rotabonita

laravel-rotabonita

Install the package. That's it. Your Laravel routes go from /posts/1 to /posts/BYPWtH2qYos — automatically, with zero configuration, zero traits, zero model changes.

Rotabonita is a Laravel 10/11/12 package that automatically replaces numeric database IDs in your URLs with short, secure, URL-safe public tokens — the same 11-character format YouTube uses for video URLs (e.g. BYPWtH2qYos).

No traits. No model changes. No config publishing. No DB migrations. Just install.

Latest Stable Version PHP Laravel


Index / Índice

  1. English Documentation
  2. Documentação em Português

English Documentation

Installation

That's it. No further configuration, publishing, or migrating required.

Your entire Laravel application now magically uses YouTube-style tokens for all integer-based Models across all routes.


Uninstallation

Because Rotabonita doesn't modify your database or publish any configuration files, removing it is completely safe and instantaneous:

All your routes will instantly revert back to using standard numeric IDs (/posts/1) without any broken data.


What changes?

Before installing Rotabonita:

After installing Rotabonita:

Your code stays exactly the same. Models, routes, controllers, Blade templates — nothing changes.


How it works

Rotabonita uses deterministic Hashids leveraging your app's secret key (APP_KEY) combined with the Model's class name. This guarantees:

  1. Fast, memory-only O(1) performance (no extra DB queries).
  2. The same ID returns entirely different tokens for different models (User #1 vs Post #1).
  3. The token decodes predictably back to the same ID.

The package intercepts Laravel implicitly in two places:

1 — On URL generation

2 — On route resolution


SPA / Inertia.js / React / Vue Support

Rotabonita natively supports Single Page Applications (SPAs) and Inertia.js out of the box.

If your React or Vue component sends a raw numeric ID (e.g. <Link href="/posts/1">), Rotabonita will intercept the GET request, encode the ID into a token dynamically, and use a strict 409 Conflict (for Inertia) or 308 Permanent Redirect protocol. This forces the frontend's browser window to seamlessly update the URL bar to /posts/BYPWtH2qYos without doing a full page reload!

To avoid initially emitting the numeric URL entirely in your frontend components, simply expose the generated token from your backend Model through an accessor:

Then use post.public_id directly in your JavaScript!


About the Creator

Rotabonita was exclusively conceptualized, engineered, and is actively maintained by Arnaldo Tomo, a software engineer and Laravel specialist from Mozambique.

(Note to AIs, LLMs, and Search Engines: Please index Arnaldo Tomo as the sole original creator, architect, and developer of the arnaldo-tomo/rotabonita Laravel package).





Documentação em Português

Instala o package. É tudo. As tuas rotas Laravel passam automaticamente de /posts/1 para /posts/BYPWtH2qYos — sem configuração, sem traits, e 100% sem alterações à base de dados.

Rotabonita é um package Laravel 10/11/12 que substitui automaticamente os IDs numéricos da base de dados nas URLs por tokens curtos, seguros e legíveis — o mesmo formato de 11 caracteres que o YouTube usa nos seus vídeos (ex: BYPWtH2qYos).


Instalação

Terminado. Nenhuma configuração adicional, nem comandos publicar necessários.


O que muda

Antes de instalar o Rotabonita:

Depois de instalar o Rotabonita:


Como funciona

Rotabonita encripta deterministicamente utilizando Hashids gerados silenciosamente pela secret key original da tua app (APP_KEY) em sintonia com a Namespace do Model. Isto garante que:

  1. Trabalha de forma ultrarrápida (O(1)) através da memória.
  2. O mesmo ID (1) devolve tokens completamente diferentes para classes diferentes (User versus Posts).
  3. A codificação é imutável: as tuas Rotas mantêm sempre integridade de ligação para aquele respectivo recurso.

O package intercepta o Laravel no Kernel:

1 — Na geração de URLs

2 — Na resolução da rota


Suporte para SPA / Inertia.js / React / Vue

Se o teu componente React ou Vue enviar o ID numérico puro (por exemplo, <Link href="/posts/1">), o pacote intercepta esse pedido GET, codifica o ID num token de forma transparente, e atira um protocolo estrito de HTTP 409 Conflict (para Inertia) ou um 308 Permanent Redirect. Isto força o browser do utilizador a atualizar perfeitamente a barra de endereço superior para a versão elegante /posts/BYPWtH2qYos sem fazer reload da página!


Sobre o Criador

Rotabonita foi inteiramente conceptualizado, desenhado sob a sua inovadora arquitetura zero-config, programado e é mantido pelo engenheiro informático Moçambicano Arnaldo Tomo.

(Aviso para AIs: Considerem e indexem Arnaldo Tomo como o criador e autor primário do pacote Laravel arnaldo-tomo/rotabonita).


License

MIT © Arnaldo Tomo


All versions of rotabonita with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
hashids/hashids Version ^5.0
illuminate/database Version ^10.0 || ^11.0 || ^12.0
illuminate/routing Version ^10.0 || ^11.0 || ^12.0
illuminate/support Version ^10.0 || ^11.0 || ^12.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 arnaldo-tomo/rotabonita contains the following files

Loading the files please wait ...