2017 © Pedro Peláez
 

library mocker

PHPBlueprint Mocker Component

image

phpblueprint/mocker

PHPBlueprint Mocker Component

  • Wednesday, March 22, 2017
  • by PHPBlueprint
  • Repository
  • 2 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

PHPBlueprint - Mocker Component

Easily create and deploy code without rewriting common structures, (*1)

Create mockable templates for any PHP code and easily deploy new class structures, models, components, etc., (*2)

Installation/Setup

Install the mocker component using composer, (*3)

$ composer require phpblueprint/mocker

Easily create a blueprint of existing classes by added a basic @example tag to the document header, (*4)

/**
 * Class documentation haeder example
 *
 * @example
 * class CLASSNAME extends \Blueprint\Http\Rest\Client {
 *      protected $param = 'FOO';
 *      public function __construct() {
 *
 *      }
 * }
 *
 * @author Damien Rose <br0kenb1nary@users.noreply.github.com>
 */

Usage

To create a new mocker of that class, run the blueprint command with the namespace\class that contains the template document header : the name of the new class you are creating, (*5)

composer blueprint \Namespace\With\Class:NewClassName

Once done, your root directory will contain a new file with mocked code template., (*6)

TODO

  • improve code cleanliness
  • add default namespace support
  • add shortname support
  • add config options to PHPBlueprint json

If you plan on using PHPBlueprint, any of its components, or if you plan on designing new components following the PHPBlueprint concept, share it and make sure to include PHPBlueprint in a mention or contributor thanks., (*7)

The Versions

22/03 2017

dev-master

9999999-dev https://github.com/phpblueprint

PHPBlueprint Mocker Component

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

scaffold blueprint phpblueprint

22/03 2017

1.0.2

1.0.2.0 https://github.com/phpblueprint

PHPBlueprint Mocker Component

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

scaffold blueprint phpblueprint

22/03 2017

1.0.0

1.0.0.0 https://github.com/phpblueprint

PHPBlueprint Mocker Component

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

scaffold blueprint phpblueprint