2017 © Pedro Peláez
 

library php-closure

Fork of php closure class for working with google closure compiler api

image

loginwashere/php-closure

Fork of php closure class for working with google closure compiler api

  • Sunday, February 10, 2013
  • by loginwashere
  • Repository
  • 1 Watchers
  • 1 Stars
  • 24 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PhpClosure

Build Status, (*1)

This is a fork of php-closure class for working with google closure compiler api that I found on Google Code, (*2)

Documentation

Will be available on phpclosure.readthedocs.org, (*3)

Installation

It is assumed that library will be used with composer, so installation steps are:, (*4)

  1. Install composer
  2. Add resent wersion of library to composer.json of your project.
{
    "require": {
        "loginwashere/php-closure": "*"
    }
}
  1. run command php path/to/composer.phar install (or php path/to/composer.phar update - if you've already executed install)

Usage

$c = new PhpClosure();
$c->add("path/to/js/my-app.js") // File must exist and be readable
    ->add("path/to/js/popup.js") // File must exist and be readable
    ->advancedMode()
    ->useClosureLibrary()
    ->cacheDir("path/to/tmp/js-cache/") // Directory must exist and be writable
    ->write();

or, (*5)

PhpClosure::create()
    ->add("path/to/js/my-app.js") // File must exist and be readable
    ->add("path/to/js/popup.js") // File must exist and be readable
    ->advancedMode()
    ->useClosureLibrary()
    ->cacheDir("path/to/tmp/js-cache/") // Directory must exist and be writable
    ->write();

For compiler options description go to official documentation, (*6)

Todo

  • Add tests
  • Add file manipulation errors handling

The Versions

10/02 2013

dev-master

9999999-dev

Fork of php closure class for working with google closure compiler api

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3

 

The Development Requires

by Dmitriy Savchenko
by Daniel Pupius
by Marcus Ekwall

10/02 2013

0.0.1

0.0.1.0

Fork of php closure class for working with google closure compiler api

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3

 

The Development Requires

by Dmitriy Savchenko
by Daniel Pupius
by Marcus Ekwall