phpuzem / linkify by phpuzem

Amazon S3 Hashed URL Generator
11
0
0
Package Data
Maintainer Username: phpuzem
Maintainer Contact: info@phpuzem.com (Halil Coşdu)
Package Create Date: 2015-07-03
Package Last Update: 2015-07-03
Home Page: https://www.phpuzem.com
Language: PHP
License: MIT License
Last Refreshed: 2019-07-19 15:01:00
Package Statistics
Total Downloads: 11
Monthly Downloads: 3
Daily Downloads: 0
Total Stars: 0
Total Watchers: 0
Total Forks: 0
Total Open Issues: 0

Laravel 5.1 Amazon S3 Hashed URL Generator

Usage

1-)

composer require phpuzem/linkify dev-master

2-)

config/app.php
return [

    'providers' => [

        Phpuzem\Linkify\LinkifyServiceProvider::class,
    ],


    'aliases' => [
        'Linkify'   => Phpuzem\Linkify\Facades\Linkify::class,
    ],
];

3-)

php artisan vendor:publish

4-)

config/linkify.php

Edit your aws secret and access key

5-)

$object = \Linkify::make()->bucketname("phpuzem")->expire(20)->objectpath("Demo.mp4")->get();

and this return :

"http://phpuzem.s3.amazonaws.com/Demo.mp4?AWSAccessKeyId=YOUR+AWS+ACCESS+ID&Expires=1435952627&Signature=k7M9VR%2FQzKxGW40V1%2Fed2aakWOQ%3D"