Download the PHP package rerout/laravel without Composer

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

rerout/laravel

Laravel integration for the Rerout API.

Wraps rerout/sdk with a service provider, facade, config file, a webhook controller, and Laravel events — so short links, QR codes, analytics, and webhooks feel native in a Laravel app.

Install

Requires PHP 8.2+ and Laravel 10, 11, or 12. The package auto-registers its service provider and the Rerout facade via Laravel package discovery.

Publish the config file if you want to tweak defaults:

Configuration

Set these in your .env:

The published config/rerout.php also exposes the webhook tolerance window and route settings — see the file's inline comments.

Usage

The client

The service provider binds a shared Rerout\Rerout singleton. Resolve it any way Laravel allows — constructor injection, the container, or the facade.

Constructor injection works too:

The full client surface — links(), project(), qr() — is documented in the base SDK README.

Verifying the API key

Calls GET /v1/projects/me and prints the resolved project. Exits non-zero on any API failure — handy for deploy smoke tests.

Webhooks

The package registers a POST route (default rerout/webhook, named rerout.webhook) backed by a controller that:

  1. verifies the X-Rerout-Signature header against REROUT_WEBHOOK_SECRET,
  2. returns 401 on a missing/invalid/expired signature,
  3. returns 400 on a body that is not a JSON object,
  4. dispatches a Laravel event and returns 200 otherwise.

Point your Rerout webhook endpoint at https://your-app.test/rerout/webhook.

Disable the bundled route (to mount the controller yourself) by setting REROUT_WEBHOOK_ROUTE_ENABLED=false, or change the path with REROUT_WEBHOOK_ROUTE_PATH.

Listen for the events:

Webhook type Event
link.clicked Rerout\Laravel\Events\LinkClicked
qr.scanned Rerout\Laravel\Events\QrScanned
domain.failed Rerout\Laravel\Events\DomainFailed

Each event carries the full decoded payload in its readonly $payload property. Unknown event types still return 200 but dispatch nothing.

Error handling

Every client call throws Rerout\Exceptions\ReroutException on failure, with a stable code(), HTTP status(), and isRateLimited() / isServerError() flags. See the base SDK README for the full list of error codes.

Local development

The composer.json includes a path repository pointing at ../php, so the package builds against the local rerout/sdk checkout inside this workspace.

License

MIT — see LICENSE.

Links


All versions of laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
rerout/sdk Version ^0.2 || ^0.3
illuminate/support Version ^10.0 || ^11.0 || ^12.0
illuminate/http 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 rerout/laravel contains the following files

Loading the files please wait ...