Download the PHP package snicco/signed-url-psr15-bridge without Composer

On this page you can find all versions of the php package snicco/signed-url-psr15-bridge. 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 signed-url-psr15-bridge

A PSR-15 middleware for the snicco/signed-url library

codecov Psalm Type-Coverage Psalm level PhpMetrics - Static Analysis

This package consists of two simple middlewares that will make working with snicco/signed-url a breeze. Make sure to read the general documentation to know how to instantiate the needed collaborators.

Installation

Usage

Make sure that your favorite framework supports binding middleware on the route level. This middleware should only be added to a route where you expect signed urls, not globally.

Basic Usage


Customizing the additional request context.


As a second argument you can pass a closure that will receive the current request. Anything you return from this closure will be taken into account when validating the current request.

This has to match the request context that you used when the link was created!
Using the ip-address at creation and the user-agent at validation will not work and the request will always be invalidated.

Only validate unsafe HTTP methods


If a signed-url should be used exactly one time (for GET requests) you might run into trouble with certain email clients that preload all links. In this case you can set the third argument of the middleware to (bool) true. The signature will then only be checked if the request method is one of [POST, PATCH, PUT, DELETE]. Make sure you route is not accessible with safe request methods if you use this option.

Garbage collection


Add the CollectGarbage middleware to your global middleware groups.


All versions of signed-url-psr15-bridge with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
psr/log Version ^1.1.1
psr/http-message Version ^1.0.0
psr/http-server-middleware Version ^1.0.0
psr/http-server-handler Version ^1.0.0
snicco/signed-url Version ^2.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 snicco/signed-url-psr15-bridge contains the following files

Loading the files please wait ....