Download the PHP package havenshen/larsign without Composer

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

Api Authorized Signature Middleware for Laravel 5

Scrutinizer Code Quality Build Status Code Coverage Build Status Latest Stable Version Latest Unstable Version Latest Stable Version Total Downloads License

About

The larsign package authorized signature server.

Features

Installation

Laravel

Require the havenshen/larsign package in your composer.json and update your dependencies:

Add the HavenShen\Larsign\LarsignServiceProvider to your config/app.php providers array:

Add the HavenShen\Larsign\LarsignFacade to your config/app.php aliases array:

Lumen

Require the havenshen/larsign package in your composer.json and update your dependencies:

Register the package with lumen in bootstrap/app.php with the following:

Global usage

To allow Larsign for all your routes, add the HandleLarsign middleware in the $middleware property of app/Http/Kernel.php class:

Group middleware

If you want to allow Larsign on a specific middleware group or route, add the HandleLarsign middleware to your group:

Application route middleware

If you want to allow Larsign on a specific application middleware or route, add the HandleLarsign middleware to your application route:

Configuration

The defaults are set in config/larsign.php. Copy this file to your own config directory to modify the values. If you're using Laravel, you can publish the config using this command:

If you're using Lumen, Copy the configuration larsign.php from vendor/havenshen/larsign/config/larsign.php to your config/ directory

Add api route in routes/api.php Copy this.

or

Client

Generate Larsign signatures

  1. Assume the following management credentials:

  2. Call interface address:

  3. The original string to be signed:

    note: the time-stamping followed by a newline [currenttime + voucher valid seconds]

  4. Base64 url safe encode:

  5. hmac_sha1 carries SecretKey encryption then base64 url safe encode:

  6. The final administrative credentials are:

    note: stitching headerName Space AccessKey:sign:signingStrBase64UrlSafeEncode

  7. Add http header:

    note: header key in config/larsign.php -> headerName

Client signature authorization failed

Testing

License

The MIT License (MIT). Please see License File for more information.


All versions of larsign 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 havenshen/larsign contains the following files

Loading the files please wait ....