Download the PHP package ilbronza/temporarylinks without Composer

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

ilbronza/temporarylinks

Link temporanei controllati per operatori esterni: URL pubblici https://dominio.it/t/{token} con scadenza, revoca manuale, limite visite, password/PIN opzionale, log accessi e protezione della pagina di destinazione.

Documentazione completa del flusso: FUNZIONAMENTO.md.

Installazione nel progetto host

Aggiungere il path repository (se non già coperto dal wildcard) e la dependency:

Poi:

Config pubblicabile con php artisan vendor:publish --tag=temporarylinks.config.

Creazione programmatica (modo preferito)

Il token non viene mai salvato in chiaro: in tabella c'è solo sha256. Se l'URL va perso, usare l'azione admin "Genera nuovo URL" o $link->regenerateToken().

Proteggere la destinazione (obbligatorio)

Il redirect da solo non protegge la pagina di destinazione. Applicare il middleware alle route raggiunte dai link:

Il middleware verifica che la sessione arrivi da un link temporaneo valido (flag messo al redirect), ricontrolla revoca/scadenza e rende disponibile il link corrente in $request->attributes->get('temporaryLink') (da cui leggere subject).

Flusso pubblico

GET /t/{token} → verifica token (hash) → gate (revocato / consumato / non iniziato / scaduto / limite visite / destinazione valida) → eventuale challenge password → eventuale pagina interstiziale "Prosegui" (solo per link monouso o con max_visits, per evitare che gli email scanner brucino il link) → increment visite atomico → log accesso → grant sessione → redirect.

Throttle attivo sia sul GET pubblico sia sul POST password (configurabile).

Admin CRUD

Route sotto temporary-links-management con middleware da config('temporarylinks.middleware.admin'). Azioni extra oltre al resource: revoke, reactivate, extend, regenerateToken, duplicate, preview (apre la destinazione senza contare la visita). Dopo creazione/rigenerazione l'URL in chiaro viene flashato in sessione (temporarylinks.plainUrl e message) e mostrato una sola volta.

Comandi

Eventi

TemporaryLinkCreated, TemporaryLinkOpened, TemporaryLinkBlocked, TemporaryLinkRevoked, TemporaryLinkConsumed.

Override

Come gli altri package IlBronza, tutto passa da config/temporarylinks.php: classi model, tabelle, controllers (crud, actions, redirect), parametersFiles, middleware, throttle, allow_absolute_urls + allowed_hosts per destinazioni URL assolute (default disabilitate, anti open-redirect).

Stati (solo calcolati)

draft, scheduled, active, expired, revoked, consumed, limit_reached — accessor $link->status / $link->translated_status, scopes active(), scheduled(), expired(), revoked(), consumed(), neverOpened().


All versions of temporarylinks with dependencies

PHP Build Version
Package Version
No informations.
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 ilbronza/temporarylinks contains the following files

Loading the files please wait ...