Download the PHP package richard-roman/short-links-qr without Composer

On this page you can find all versions of the php package richard-roman/short-links-qr. 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 short-links-qr

richard-roman/short-links-qr

Paquete Composer de short links + códigos QR para aplicaciones Laravel.

Versión: 1.2.0
Requisitos: PHP ^8.3, Laravel ^11|^12|^13
Repositorio: github.com/Richard-Roman/short-links-qr
Packagist: packagist.org/packages/richard-roman/short-links-qr

Instalación

Packagist (recomendado)

VCS (sin Packagist)

El paquete se auto-descubre vía ShortLinksServiceProvider. Ejecutar migraciones:

Configuración (opcional)

Claves principales en config/short-links.php:

Clave Default Descripción
route_prefix l Prefijo de rutas públicas
qr_generator RichardRoman\ShortLinks\Laravel\Qr\EndroidQrGenerator::class Clase del generador de QR a resolver desde el contenedor
throttle 120,1 Rate limit redirect/QR
cache.ttl 3600 TTL cache de URL resuelta (seg)
cache.prefix short_link_redirect: Prefijo clave cache
generator.length 8 Longitud de códigos auto-generados
generator.charset charset sin ambiguos Caracteres del generador aleatorio
route_pattern [a-hjkmnp-z2-9]{8} Regex Laravel where() + validación de códigos

Variables de entorno opcionales: SHORT_LINKS_LENGTH, SHORT_LINKS_CHARSET, SHORT_LINKS_ROUTE_PATTERN.

v1.1.0 — Códigos configurables y manuales

Actualización semver minor compatible con v1.0: sin overrides en .env, el comportamiento es idéntico a 1.0.0.

Código manual opcional

Si el código no cumple route_pattern, se lanza InvalidCodeFormatException. Si ya existe, DuplicateCodeException sin reintentos aleatorios.

Personalizar generador y patrón de ruta

El generador y las rutas públicas MUST usar el mismo route_pattern.

Actualizar desde v1.1

No requiere migraciones nuevas. Ver CHANGELOG.md para el detalle completo.

v1.2.0 — Gestión del ciclo de vida de enlaces

Actualización semver minor compatible con v1.1: sin cambios en .env ni migraciones.

Redirección asíncrona

El registro de clicks ya no bloquea el response HTTP. Se despacha en background vía ProcessShortLinkClickJob. Requerís un driver de cola configurado:

Desactivar un enlace

Rotación atómica de enlace

Desactiva el viejo y crea el nuevo en una única transacción de base de datos. Si la creación del nuevo falla, el viejo permanece activo (rollback automático).

Si el código viejo no existe o está inactivo, lanza ShortLinkNotFoundException.

Uso básico

Crear short links (Facade)

Rutas públicas (auto-registradas)

Nombres de ruta: short-links.redirect, short-links.qr.

Importante: registrar el ServiceProvider antes de rutas catch-all del host (p. ej. /blog).

Entity resolvers (host)

El paquete no conoce modelos de la app. Registrar resolvers en AppServiceProvider::boot():

Cada resolver implementa RichardRoman\ShortLinks\Contracts\EntityResolverInterface:

Cache de redirect

Tras resolver la URL (resolver host o url_destino), se cachea por codigo. La cache se invalida al desactivar un link.

QR

Requiere endroid/qr-code en el proyecto consumidor. Sin la dependencia, GET /l/{codigo}/qr responde 503.

Ejemplo multi-app

App A (app-web): resolvers producto, factura, entregable.
App B (blog): resolver articulo opcional; links externos solo con url_destino.

Misma instalación Composer; distintos resolvers taggeados por host.

Desarrollo local

Path repository (monorepo dev)

Estructura

Licencia

MIT — ver LICENSE.


All versions of short-links-qr with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
laravel/framework Version ^11.0|^12.0|^13.0
endroid/qr-code Version ^6.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 richard-roman/short-links-qr contains the following files

Loading the files please wait ...