2017 © Pedro Peláez
 

library laravel-tinify

Laravel Facade for tinify API

image

msonowal/laravel-tinify

Laravel Facade for tinify API

  • Saturday, November 25, 2017
  • by msonowal
  • Repository
  • 2 Watchers
  • 2 Stars
  • 799 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 3 Versions
  • 12 % Grown

The README.md

laravel-tinify

This package provides integration with the Tinify a.k.a TinyPNG API., (*1)

Latest Stable Version Total Downloads, (*2)

The package simply provides a Tinify facade that acts as a wrapper to the tinify/tinfiy-php, (*3)

It was originaly developed by Marvin Oßwald, (*4)

I added functionality to use of laravel bulit in config cache helper which was having issues of returning null when configs are cached via php artisan config:cache because it was directly loading via env helper. So, I converted it to use the api_key from config which can be defined to load from env and still use the php artisan config:cache command and it works., (*5)

Installation

Install via composer by adding the following to your composer.json:, (*6)

    ...
    "require": {
        "msonowal/laravel-tinify": "~1.0"
    }
    ...

Add service provider to config/app.php:, (*7)

    ...
    msonowal\LaravelTinify\LaravelTinifyServiceProvider::class
    ...

Add alias to config/app.php:, (*8)

    ...
    'Tinify' => msonowal\LaravelTinify\Facades\Tinify::class
    ...

Configuration

Publish the Configuration for the package which will create the config file tinify.php inside config directory, (*9)

php artisan vendor:publish --provider="msonowal\LaravelTinify\LaravelTinifyServiceProvider", (*10)

Set a env variable "TINIFY_APIKEY" with your issued apikey or set api_key into config/tinify.php, (*11)

This package is available under the MIT license., (*12)

The Versions

25/11 2017

dev-master

9999999-dev

Laravel Facade for tinify API

  Sources   Download

MIT

The Requires

 

tinypng tinify

02/09 2017

1.0.1

1.0.1.0

Laravel Facade for tinify API

  Sources   Download

MIT

The Requires

 

tinypng tinify

14/03 2017

1.0

1.0.0.0

Laravel Facade for tinify API

  Sources   Download

MIT

The Requires

 

tinypng tinify