2017 © Pedro Peláez
 

library lmmtfy-php

Lmmtfy API client

image

lmmtfy/lmmtfy-php

Lmmtfy API client

  • Friday, September 8, 2017
  • by lmmtfy
  • Repository
  • 1 Watchers
  • 2 Stars
  • 211 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 118 % Grown

The README.md

Lmmtfy-PHP

Installation

Make sure you have Composer installed and add lmmtfy-php as a dependency., (*1)

# Add lmmtfy-php as a dependency
composer require lmmtfy/lmmtfy-php

Next, require Composer's autoloader, in your application, to automatically load the Lmmtfy client in your project:, (*2)

require 'vendor/autoload.php';

Usage

API client

// Start by initializing the API client 
$lmmtfy = new Lmmtfy\Lmmtfy();

// After that you can minify a string
$minified = $lmmtfy->css('body { color: #ff0000; }')->toString();

// Or the contents of a file
$minified = $lmmtfy->css(fopen('test.css', 'r'))->toString();

// And write the result directly to a file
$lmmtfy->css(fopen('test.css', 'r'))->saveTo('test.min.css');

Todo

  • Add tests
  • Improve documentation and this readme

The Versions

08/09 2017

dev-master

9999999-dev https://lmmtfy.io/

Lmmtfy API client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar lmmtfy

08/09 2017

1.0.0

1.0.0.0 https://lmmtfy.io/

Lmmtfy API client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar lmmtfy

20/12 2015

0.0.1

0.0.1.0 https://lmmtfy.io/

Lmmtfy API client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar lmmtfy