2017 © Pedro Peláez
 

library php_skeleton

SamsonPHP module for automatic module and code generation

image

samsonos/php_skeleton

SamsonPHP module for automatic module and code generation

  • Monday, December 8, 2014
  • by samsonos
  • Repository
  • 2 Watchers
  • 3 Stars
  • 173 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

SamsonPHP module for automatic module and code generation for SamsonPHP framework

This module helps with various routine tasks and focused on their automatic completion, (*1)

Automatic Local module generation

For quick creating local module with name contacts you must visit url [domain]/skeleton/generate/contacts System will automatically create * app/view/contacts/index.php view file * app/controller/contacts.php controller file * css/contacts.less less file * js/contacts.coffee coffee file, (*2)

Module generator Configuration

Available one configurable parameters for tuning: * boolean $createCoffee If true .coffee file will be generated otherwise .js, (*3)

Automatic .less file generation from html

For automatic creating .less file from html view contacts/index you must visit url [domain]/skeleton/less/contacts/index System will automatically create css/contacts_index.less file with less selectors tree, (*4)

Less generator Configuration

Available two configurable parameters for tuning less generator: * array $lessIgnore Collection of tags, classes, less selectors to ignore, you can specify any less selector that you don't want to be outputted in generated LESS file, (*5)

Less generator SandBox

If you want to test LESS generator online you can visit [domain]/skeleton/lesssandbox controller, (*6)

Example configuration class for this module:

class SkeletonConfig extends \samson\core\Config
{
    public $__module = 'skeleton';

    public $createCoffee = true;

    public $lessIgnore = array('html','body',...);

    public $lessDebug = true;
}

Developed by SamsonOS, (*7)

The Versions

08/12 2014

dev-master

9999999-dev

SamsonPHP module for automatic module and code generation

  Sources   Download

The Requires