2017 © Pedro Peláez
 

library nginx_secure_link

nginx secure link php package

image

m0nsky/nginx_secure_link

nginx secure link php package

  • Wednesday, October 11, 2017
  • by m0nsky
  • Repository
  • 2 Watchers
  • 4 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

nginx_secure_link

nginx_secure_link, (*1)

Note: This package is still in early development stages, (*2)

This PHP/Laravel package will help you to easily generate links which are secured by nginx's ngx_http_secure_link_module, (*3)

Version Compatibility

Laravel nginx_secure_link PHP
5.x 1.0.x >= 5.3

Installation

Through command line:, (*4)

composer require m0nsky/nginx_secure_link

Through composer.json:, (*5)

{
  "require": {
    "m0nsky/nginx_secure_link": "1.0.*"
  }
}

Usage

Including the secure link class, (*6)

use m0nsky\NginxSecureLink\NginxSecureLink;

Publish configuration, (*7)

php artisan vendor:publish --provider="m0nsky\NginxSecureLink\Providers\NginxSecureLinkServiceProvider"

Update configuration, (*8)

return [

    'base_path'     => '/var/www/path/to/files/',
    'base_url'      => 'https://example.com/url/to/files/',
    'secret'        => 'secret',
    'ttl'           => 60, // (seconds)

];

Instantiate class, (*9)

Note: If no parameters are specified, the wrapper will use the settings as specified in your nginx_secure_link.php config, (*10)

$nginxSecureLink = new NginxSecureLink();

or, (*11)

$nginxSecureLink = new NginxSecureLink('/path/to/files/', 'https://example.com/url/to/files/', 60, 'secret');

Generate file url, (*12)

$url = $nginxSecureLink->getUrl('archive.zip');

Which will return a string in the following format, (*13)

https://example.com/url/to/files/archive.zip?md5=AUEnXC7T-Tfv9WLsWbf-mw&expires=1483228740, (*14)

The Versions

11/10 2017

dev-master

9999999-dev https://github.com/m0nsky/nginx_secure_link

nginx secure link php package

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar m0nsky

laravel link secure nginx nginx_secure_link ngx_http_secure_link_module

11/10 2017

1.0.2

1.0.2.0 https://github.com/m0nsky/nginx_secure_link

nginx secure link php package

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar m0nsky

laravel link secure nginx nginx_secure_link ngx_http_secure_link_module

11/10 2017

dev-develop

dev-develop https://github.com/m0nsky/nginx_secure_link

nginx secure link php package

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar m0nsky

laravel link secure nginx nginx_secure_link ngx_http_secure_link_module

11/10 2017

dev-feature/code-cleanup

dev-feature/code-cleanup https://github.com/m0nsky/nginx_secure_link

nginx secure link php package

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar m0nsky

laravel link secure nginx nginx_secure_link ngx_http_secure_link_module

10/10 2017

1.0.1

1.0.1.0 https://github.com/m0nsky/nginx_secure_link

nginx secure link php package

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar m0nsky

laravel link secure nginx nginx_secure_link ngx_http_secure_link_module

10/10 2017

dev-hotfix/readme-version-fix

dev-hotfix/readme-version-fix https://github.com/m0nsky/nginx_secure_link

nginx secure link php package

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar m0nsky

laravel link secure nginx nginx_secure_link ngx_http_secure_link_module

10/10 2017

1.0.0

1.0.0.0 https://github.com/m0nsky/nginx_secure_link

nginx secure link php package

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar m0nsky

laravel link secure nginx nginx_secure_link ngx_http_secure_link_module

10/10 2017

dev-feature/extra-readme-features

dev-feature/extra-readme-features https://github.com/m0nsky/nginx_secure_link

nginx secure link php package

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar m0nsky

laravel link secure nginx nginx_secure_link ngx_http_secure_link_module