samsonos / php_skeleton
SamsonPHP module for automatic module and code generation
Installs: 178
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/samsonos/php_skeleton
Requires
This package is not auto-updated.
Last update: 2025-10-25 21:43:37 UTC
README
#SamsonPHP module for automatic module and code generation for SamsonPHP framework
This module helps with various routine tasks and focused on their automatic completion
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.phpview fileapp/controller/contacts.phpcontroller filecss/contacts.lessless filejs/contacts.coffeecoffee file
###Module generator Configuration Available one configurable parameters for tuning:
boolean $createCoffeeIf true .coffee file will be generated otherwise .js
##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
###Less generator Configuration Available two configurable parameters for tuning less generator:
array $lessIgnoreCollection 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
###Less generator SandBox
If you want to test LESS generator online you can visit [domain]/skeleton/lesssandbox controller
##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