Download the PHP package actinity/signed-urls without Composer

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

Signed Urls

A library for signing and validating short-lived, one-time URLs using public and private keys. Designed for Laravel, but can be used elsewhere.

Evolved from twogether/laravel-url-signer

Installation with Laravel

composer require actinity/signed-urls

php artisan vendor:publish --provider="Actinity\SignedUrls\Laravel\SignedUrlServiceProvider"

php artisan actinity:generate-key-pair

The last command will give you a public and private key pair. Add the private key to your .env file.

Configuring

Every app that you will be communicating between needs a source_name. By default this is Str::slug(config('app.name')) but you can explicitly set it in config/signed_urls.php.

Also in that config file you'll see a public_keys array. This is where you can add the public keys for apps that will make requests. So if you have an app called dashboard, you would configure 'source_name' => 'dashboard'. If that needs to make signed requests to an app called reports, then in that reports app you would configure it like this:

The source_name parameter from your config will be added to every generated URL as ac_sc. For more complex logic when resolving a key to validate, you can implement Actinity\SignedUrls\Contracts\KeyProvider and specify that in the config.

Generating URLs

To generate a signed URL, get the service from the service container, likely through injection.

Validating URLs

To validate a signed URL:

You can also just use Actinity\SignedUrls\Laravel\SignedUrlMiddleware.


All versions of signed-urls with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-openssl Version *
ext-json Version *
hidehalo/nanoid-php 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 actinity/signed-urls contains the following files

Loading the files please wait ...