2017 © Pedro Peláez
 

library utils

Library of several utilities for PHP applications

image

cybtow/utils

Library of several utilities for PHP applications

  • Wednesday, October 12, 2016
  • by cybtow
  • Repository
  • 0 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Utils

Library of several utilities for PHP applications., (*1)

Installation

composer require cybtow/utils "^0.1"

CtrlTime library

use Cybtow\Utils\CtrlTime;

$CtrlTime = new CtrlTime();
$CtrlTime->start();
// code here
echo $CtrlTime->time(); //show time between here and start.

FileSystem library

  • mkdir: Create a directory.
  • rrmdir: Delete a tree directory recursively.

GMTDateTime library

This class extends from PHP \DateTime., (*2)

Less library

This class is a wrapper for oyejorge/less.php library (https://github.com/oyejorge/less.php/tree/master), (*3)

use Cybtow\Utils\Less;

$Less = new Less();
$in = 'main.less';
$out = 'main.css';

$Less->options['cache_dir'] = './cacheless';
$Less->variables['my_color'] = '#ffaabb';
$Less->parseFile($in, '', array(), $out);

Utils library

  • slug: Create a valid string for urls
  • getUniqId: Return a unique random id
  • echoVarDump: Prints a var dump and exits (optionaly)

The Versions

12/10 2016

dev-master

9999999-dev

Library of several utilities for PHP applications

  Sources   Download

MIT

The Requires

 

utils util utilities

12/10 2016

dev-develop

dev-develop

Library of several utilities for PHP applications

  Sources   Download

MIT

The Requires

 

utils util utilities

12/10 2016

0.1.2

0.1.2.0

Library of several utilities for PHP applications

  Sources   Download

MIT

The Requires

 

utils util utilities

12/10 2016

0.1.1

0.1.1.0

Library of several utilities for PHP applications

  Sources   Download

MIT

The Requires

 

utils util utilities

12/10 2016

0.1.0

0.1.0.0

Library of several utilities for PHP applications

  Sources   Download

MIT

The Requires

  • php >=5.3

 

utils util utilities