PHP Classes

Helphp PHP Class Generator: Generate classes from configuration parameters

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 45 All time: 10,816 This week: 40Up
Version License PHP version Categories
helphp 1.0.0MIT/X Consortium ...5Language, Code Generation
Description 

Author

This package can generate classes from configuration parameters.

It provides a command-line interface to run classes to generate code for given classes.

Currently, the command takes several types of parameters like:

- The name of the class

- The class namespace

- The names of the classes that a new class uses or extends

- The names of the interfaces that the new class implements

- The path of a directory to save the generated files

- Magic getter and setter functions

- Constant values

- Names of the public, private, and protected class variables

- Generate a trait

Picture of Gavin Gordon Markowski
  Performance   Level  
Innovation award
Innovation award
Nominee: 5x

 

Documentation

Helphp PHP CLI

Latest Release Version Tag Usage License

Description

This is a PHP CLI package which provides some helpful functions that make creating PHP-related files easier and faster, whilst also maintaining strict visual file data continuity.

Dependencies

Installation

	$	composer require gavinggordon/helphp ^1.0.0

Usage

	$	php helphp create:class Test

Commands Overview

  • Create - Generic Class * Arguments - 'classname' - 'savedir' * Options - '--namespace, -n' - '--uses, -u' - '--extends, -e' - '--implements, -i' - '--traits, -t' - '--singleton, -s' - '--magic-set-get, -m' - '--constants, -c' - '--public-properties, -p' - '--protected-properties, -r' - '--private-properties, -w' - '--public-static-properties, -x' - '--protected-static-properties, -y' - '--private-static-properties, -z' - Abstract Class (Still In Production) - Interface (Still In Production) - Trait (Still In Production)
  • Review (Still In Production)
  • Update (Still In Production)
  • Delete (Still In Production)

Issues

If you have any issues at all, please post your findings in the issues page at https://github.com/gavinggordon/helphp/issues.

License

This package utilizes the MIT License.


  Files folder image Files (833)  
File Role Description
Files folder imageapp (1 file, 1 directory)
Files folder imagesrc (1 file, 1 directory)
Files folder imagetmp (1 file)
Files folder imagevendor (1 file, 5 directories)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file helphp Example Example script
Accessible without login Plain text file helphp.php Example Example script
Accessible without login Plain text file LICENSE.txt Doc. Documentation
Accessible without login Plain text file README.md Doc. Documentation

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:45
This week:0
All time:10,816
This week:40Up