phpuzem / linkify by phpuzem

Amazon S3 Hashed URL Generator
31
0
1
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: 2024-04-18 15:28:30
Package Statistics
Total Downloads: 31
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 1
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"