2017 © Pedro Peláez
 

library php-generator

image

nette/php-generator

  • Wednesday, July 25, 2018
  • by david@grudl.com
  • Repository
  • 42 Watchers
  • 310 Stars
  • 2,951,492 Installations
  • PHP
  • 134 Dependents
  • 0 Suggesters
  • 27 Forks
  • 3 Open issues
  • 36 Versions
  • 15 % Grown

The README.md

Nette PHP Generator, (*1)

Latest Stable Version Downloads this Month, (*2)

 , (*3)

Are you looking for a tool to generate PHP code for classes, functions, or complete PHP files?, (*4)

✅ Supports all the latest PHP features like [property hooks](#property-hooks), [enums](#enums), [attributes](#attributes), etc.
✅ Allows you to easily modify [existing classes](#generating-from-existing-ones)
✅ Output compliant with [PSR-12 / PER coding style](#printer-and-psr-compliance)
✅ Highly mature, stable, and widely used library

 , (*5)

Installation

Download and install the library using the Composer tool:, (*6)

composer require nette/php-generator

PhpGenerator 4.1 is compatible with PHP 8.0 to 8.4. Documentation can be found on the library's website., (*7)

 , (*8)

Support Me

Do you like PHP Generator? Are you looking forward to the new features?, (*9)

Buy me a coffee, (*10)

Thank you!, (*11)

 , (*12)

Classes

Let's start with an example of creating a class using ClassType:, (*13)

$class = new Nette\PhpGenerator\ClassType('Demo');

$class
    ->setFinal()
    ->setExtends(ParentClass::class)
    ->addImplement(Countable::class)
    ->addComment("Class description.\nSecond line\n")
    ->addComment('@property-read Nette\Forms\Form $form');

// generate code simply by typecasting to string or using echo:
echo $class;

This will return:, (*14)

/**
 * Class description
 * Second line
 *
 * @property-read Nette\Forms\Form $form
 */
final class Demo extends ParentClass implements Countable
{
}

To generate the code, you can also use a so-called printer, which, unlike echo $class, can be further configured:, (*15)

$printer = new Nette\PhpGenerator\Printer;
echo $printer->printClass($class);

You can add constants (class Constant) and properties (class Property):, (*16)

$class->addConstant('ID', 123)
    ->setProtected() // constant visibility
    ->setType('int')
    ->setFinal();

$class->addProperty('items', [1, 2, 3])
    ->setPrivate() // or setVisibility('private')
    ->setStatic()
    ->addComment('@var int[]');

$class->addProperty('list')
    ->setType('?array')
    ->setInitialized(); // outputs '= null'

This will generate:, (*17)

final protected const int ID = 123;

/** @var int[] */
private static $items = [1, 2, 3];

public ?array $list = null;

And you can add methods:, (*18)

$method = $class->addMethod('count')
    ->addComment('Count it.')
    ->setFinal()
    ->setProtected()
    ->setReturnType('?int') // return types for methods
    ->setBody('return count($items ?: $this->items);');

$method->addParameter('items', []) // $items = []
    ->setReference()           // &$items = []
    ->setType('array');        // array &$items = []

The result is:, (*19)

/**
 * Count it.
 */
final protected function count(array &$items = []): ?int
{
    return count($items ?: $this->items);
}

Promoted parameters introduced in PHP 8.0 can be passed to the constructor:, (*20)

$method = $class->addMethod('__construct');
$method->addPromotedParameter('name');
$method->addPromotedParameter('args', [])
    ->setPrivate();

The result is:, (*21)

public function __construct(
    public $name,
    private $args = [],
) {
}

Readonly properties and classes be marked using the setReadOnly() function., (*22)


If an added property, constant, method, or parameter already exists, an exception is thrown., (*23)

Class members can be removed using removeProperty(), removeConstant(), removeMethod(), or removeParameter()., (*24)

You can also add existing Method, Property, or Constant objects to the class:, (*25)

$method = new Nette\PhpGenerator\Method('getHandle');
$property = new Nette\PhpGenerator\Property('handle');
$const = new Nette\PhpGenerator\Constant('ROLE');

$class = (new Nette\PhpGenerator\ClassType('Demo'))
    ->addMember($method)
    ->addMember($property)
    ->addMember($const);

You can also clone existing methods, properties, and constants under a different name using cloneWithName():, (*26)

$methodCount = $class->getMethod('count');
$methodRecount = $methodCount->cloneWithName('recount');
$class->addMember($methodRecount);

 , (*27)

Interfaces or Traits

You can create interfaces and traits (classes InterfaceType and TraitType):, (*28)

$interface = new Nette\PhpGenerator\InterfaceType('MyInterface');
$trait = new Nette\PhpGenerator\TraitType('MyTrait');

Using a trait:, (*29)

$class = new Nette\PhpGenerator\ClassType('Demo');
$class->addTrait('SmartObject');
$class->addTrait('MyTrait')
    ->addResolution('sayHello as protected')
    ->addComment('@use MyTrait<Foo>');
echo $class;

The result is:, (*30)

class Demo
{
    use SmartObject;
    /** @use MyTrait<Foo> */
    use MyTrait {
        sayHello as protected;
    }
}

 , (*31)

Enums

You can easily create enums introduced in PHP 8.1 like this (class EnumType):, (*32)

$enum = new Nette\PhpGenerator\EnumType('Suit');
$enum->addCase('Clubs');
$enum->addCase('Diamonds');
$enum->addCase('Hearts');
$enum->addCase('Spades');

echo $enum;

The result is:, (*33)

enum Suit
{
    case Clubs;
    case Diamonds;
    case Hearts;
    case Spades;
}

You can also define scalar equivalents and create a "backed" enum:, (*34)

$enum->addCase('Clubs', '♣');
$enum->addCase('Diamonds', '♦');

For each case, you can add a comment or attributes using addComment() or addAttribute()., (*35)

 , (*36)

Anonymous Classes

Pass null as the name, and you have an anonymous class:, (*37)

$class = new Nette\PhpGenerator\ClassType(null);
$class->addMethod('__construct')
    ->addParameter('foo');

echo '$obj = new class ($val) ' . $class . ';';

The result is:, (*38)

$obj = new class ($val) {

    public function __construct($foo)
    {
    }
};

 , (*39)

Global Functions

The code for functions is generated by the class GlobalFunction:, (*40)

$function = new Nette\PhpGenerator\GlobalFunction('foo');
$function->setBody('return $a + $b;');
$function->addParameter('a');
$function->addParameter('b');
echo $function;

// or use the PsrPrinter for output compliant with PSR-2 / PSR-12 / PER
// echo (new Nette\PhpGenerator\PsrPrinter)->printFunction($function);

The result is:, (*41)

function foo($a, $b)
{
    return $a + $b;
}

 , (*42)

Anonymous Functions

The code for anonymous functions is generated by the class Closure:, (*43)

$closure = new Nette\PhpGenerator\Closure;
$closure->setBody('return $a + $b;');
$closure->addParameter('a');
$closure->addParameter('b');
$closure->addUse('c')
    ->setReference();
echo $closure;

// or use the PsrPrinter for output compliant with PSR-2 / PSR-12 / PER
// echo (new Nette\PhpGenerator\PsrPrinter)->printClosure($closure);

The result is:, (*44)

function ($a, $b) use (&$c) {
    return $a + $b;
}

 , (*45)

Short Arrow Functions

You can also output a short anonymous function using the printer:, (*46)

$closure = new Nette\PhpGenerator\Closure;
$closure->setBody('$a + $b');
$closure->addParameter('a');
$closure->addParameter('b');

echo (new Nette\PhpGenerator\Printer)->printArrowFunction($closure);

The result is:, (*47)

fn($a, $b) => $a + $b

 , (*48)

Method and Function Signatures

Methods are represented by the class Method. You can set visibility, return value, add comments, attributes, etc.:, (*49)

$method = $class->addMethod('count')
    ->addComment('Count it.')
    ->setFinal()
    ->setProtected()
    ->setReturnType('?int');

Individual parameters are represented by the class Parameter. Again, you can set all conceivable properties:, (*50)

$method->addParameter('items', []) // $items = []
    ->setReference()           // &$items = []
    ->setType('array');        // array &$items = []

// function count(&$items = [])

To define the so-called variadics parameters (or also the splat, spread, ellipsis, unpacking or three dots operator), use setVariadic():, (*51)

$method = $class->addMethod('count');
$method->setVariadic(true);
$method->addParameter('items');

This generates:, (*52)

function count(...$items)
{
}

 , (*53)

Method and Function Bodies

The body can be passed all at once to the setBody() method or gradually (line by line) by repeatedly calling addBody():, (*54)

$function = new Nette\PhpGenerator\GlobalFunction('foo');
$function->addBody('$a = rand(10, 20);');
$function->addBody('return $a;');
echo $function;

The result is:, (*55)

function foo()
{
    $a = rand(10, 20);
    return $a;
}

You can use special placeholders for easy variable insertion., (*56)

Simple placeholders ?, (*57)

$str = 'any string';
$num = 3;
$function = new Nette\PhpGenerator\GlobalFunction('foo');
$function->addBody('return substr(?, ?);', [$str, $num]);
echo $function;

The result is:, (*58)

function foo()
{
    return substr('any string', 3);
}

Placeholder for variadic ...?, (*59)

$items = [1, 2, 3];
$function = new Nette\PhpGenerator\GlobalFunction('foo');
$function->setBody('myfunc(...?);', [$items]);
echo $function;

The result is:, (*60)

function foo()
{
    myfunc(1, 2, 3);
}

You can also use named parameters for PHP 8 with ...?:, (*61)

$items = ['foo' => 1, 'bar' => true];
$function->setBody('myfunc(...?:);', [$items]);

// myfunc(foo: 1, bar: true);

The placeholder is escaped with a backslash \?, (*62)

$num = 3;
$function = new Nette\PhpGenerator\GlobalFunction('foo');
$function->addParameter('a');
$function->addBody('return $a \? 10 : ?;', [$num]);
echo $function;

The result is:, (*63)

function foo($a)
{
    return $a ? 10 : 3;
}

 , (*64)

Printer and PSR Compliance

The Printer class is used for generating PHP code:, (*65)

$class = new Nette\PhpGenerator\ClassType('Demo');
// ...

$printer = new Nette\PhpGenerator\Printer;
echo $printer->printClass($class); // same as: echo $class

It can generate code for all other elements, offering methods like printFunction(), printNamespace(), etc., (*66)

There's also the PsrPrinter class, which outputs in accordance with PSR-2 / PSR-12 / PER coding style:, (*67)

$printer = new Nette\PhpGenerator\PsrPrinter;
echo $printer->printClass($class);

Need custom behavior? Create your own version by inheriting the Printer class. You can reconfigure these variables:, (*68)

class MyPrinter extends Nette\PhpGenerator\Printer
{
    // length of the line after which the line will break
    public int $wrapLength = 120;
    // indentation character, can be replaced with a sequence of spaces
    public string $indentation = "\t";
    // number of blank lines between properties
    public int $linesBetweenProperties = 0;
    // number of blank lines between methods
    public int $linesBetweenMethods = 2;
    // number of blank lines between 'use statements' groups for classes, functions, and constants
    public int $linesBetweenUseTypes = 0;
    // position of the opening curly brace for functions and methods
    public bool $bracesOnNextLine = true;
    // place one parameter on one line, even if it has an attribute or is supported
    public bool $singleParameterOnOneLine = false;
    // omits namespaces that do not contain any class or function
    public bool $omitEmptyNamespaces = true;
    // separator between the right parenthesis and return type of functions and methods
    public string $returnTypeColon = ': ';
}

How and why does the standard Printer differ from PsrPrinter? Why isn't there just one printer, the PsrPrinter, in the package?, (*69)

The standard Printer formats the code as we do throughout Nette. Since Nette was established much earlier than PSR, and also because PSR took years to deliver standards on time, sometimes even several years after introducing a new feature in PHP, it resulted in a coding standard that differs in a few minor aspects. The major difference is the use of tabs instead of spaces. We know that by using tabs in our projects, we allow for width customization, which is essential for people with visual impairments. An example of a minor difference is placing the curly brace on a separate line for functions and methods, always. The PSR recommendation seems illogical to us and leads to reduced code clarity., (*70)

 , (*71)

Types

Every type or union/intersection type can be passed as a string; you can also use predefined constants for native types:, (*72)

use Nette\PhpGenerator\Type;

$member->setType('array'); // or Type::Array;
$member->setType('?array'); // or Type::nullable(Type::Array);
$member->setType('array|string'); // or Type::union(Type::Array, Type::String)
$member->setType('Foo&Bar'); // or Type::intersection(Foo::class, Bar::class)
$member->setType(null); // removes the type

The same applies to the setReturnType() method., (*73)

 , (*74)

Literals

Using Literal, you can pass any PHP code, for example, for default property values or parameters, etc:, (*75)

use Nette\PhpGenerator\Literal;

$class = new Nette\PhpGenerator\ClassType('Demo');

$class->addProperty('foo', new Literal('Iterator::SELF_FIRST'));

$class->addMethod('bar')
    ->addParameter('id', new Literal('1 + 2'));

echo $class;

Result:, (*76)

class Demo
{
    public $foo = Iterator::SELF_FIRST;

    public function bar($id = 1 + 2)
    {
    }
}

You can also pass parameters to Literal and have them formatted into valid PHP code using placeholders:, (*77)

new Literal('substr(?, ?)', [$a, $b]);
// generates for example: substr('hello', 5);

A literal representing the creation of a new object can easily be generated using the new method:, (*78)

Literal::new(Demo::class, [$a, 'foo' => $b]);
// generates for example: new Demo(10, foo: 20)

 , (*79)

Attributes

With PHP 8, you can add attributes to all classes, methods, properties, constants, enum cases, functions, closures, and parameters. You can also use literals as parameter values., (*80)

$class = new Nette\PhpGenerator\ClassType('Demo');
$class->addAttribute('Table', [
    'name' => 'user',
    'constraints' => [
        Literal::new('UniqueConstraint', ['name' => 'ean', 'columns' => ['ean']]),
    ],
]);

$class->addProperty('list')
    ->addAttribute('Deprecated');

$method = $class->addMethod('count')
    ->addAttribute('Foo\Cached', ['mode' => true]);

$method->addParameter('items')
    ->addAttribute('Bar');

echo $class;

Result:, (*81)

#[Table(name: 'user', constraints: [new UniqueConstraint(name: 'ean', columns: ['ean'])])]
class Demo
{
    #[Deprecated]
    public $list;


    #[Foo\Cached(mode: true)]
    public function count(
        #[Bar]
        $items,
    ) {
    }
}

 , (*82)

Property Hooks

You can also define property hooks (represented by the class PropertyHook) for get and set operations, a feature introduced in PHP 8.4:, (*83)

$class = new Nette\PhpGenerator\ClassType('Demo');
$prop = $class->addProperty('firstName')
    ->setType('string');

$prop->addHook('set', 'strtolower($value)')
    ->addParameter('value')
        ->setType('string');

$prop->addHook('get')
    ->setBody('return ucfirst($this->firstName);');

echo $class;

This generates:, (*84)

class Demo
{
    public string $firstName {
        set(string $value) => strtolower($value);
        get {
            return ucfirst($this->firstName);
        }
    }
}

Properties and property hooks can be abstract or final:, (*85)

$class->addProperty('id')
    ->setType('int')
    ->addHook('get')
        ->setAbstract();

$class->addProperty('role')
    ->setType('string')
    ->addHook('set', 'strtolower($value)')
        ->setFinal();

 , (*86)

Asymmetric Visibility

PHP 8.4 introduces asymmetric visibility for properties. You can set different access levels for reading and writing. The visibility can be set using either the setVisibility() method with two parameters, or by using setPublic(), setProtected(), or setPrivate() with the mode parameter that specifies whether the visibility applies to getting or setting the property. The default mode is 'get'., (*87)

$class = new Nette\PhpGenerator\ClassType('Demo');

$class->addProperty('name')
    ->setType('string')
    ->setVisibility('public', 'private'); // public for read, private for write

$class->addProperty('id')
    ->setType('int')
    ->setProtected('set'); // protected for write

echo $class;

This generates:, (*88)

class Demo
{
    public private(set) string $name;

    protected(set) int $id;
}

 , (*89)

Namespace

Classes, traits, interfaces, and enums (hereafter referred to as classes) can be grouped into namespaces represented by the PhpNamespace class:, (*90)

$namespace = new Nette\PhpGenerator\PhpNamespace('Foo');

// create new classes in the namespace
$class = $namespace->addClass('Task');
$interface = $namespace->addInterface('Countable');
$trait = $namespace->addTrait('NameAware');

// or insert an existing class into the namespace
$class = new Nette\PhpGenerator\ClassType('Task');
$namespace->add($class);

If the class already exists, an exception is thrown., (*91)

You can define use clauses:, (*92)

// use Http\Request;
$namespace->addUse(Http\Request::class);
// use Http\Request as HttpReq;
$namespace->addUse(Http\Request::class, 'HttpReq');
// use function iter\range;
$namespace->addUseFunction('iter\range');

To simplify a fully qualified class, function, or constant name based on defined aliases, use the simplifyName method:, (*93)

echo $namespace->simplifyName('Foo\Bar'); // 'Bar', because 'Foo' is the current namespace
echo $namespace->simplifyName('iter\range', $namespace::NameFunction); // 'range', due to the defined use-statement

Conversely, you can convert a simplified class, function, or constant name back to a fully qualified name using the resolveName method:, (*94)

echo $namespace->resolveName('Bar'); // 'Foo\Bar'
echo $namespace->resolveName('range', $namespace::NameFunction); // 'iter\range'

 , (*95)

Class Names Resolving

When a class is part of a namespace, it's rendered slightly differently: all types (e.g., type hints, return types, parent class name, implemented interfaces, used traits, and attributes) are automatically resolved (unless you turn it off, see below). This means you must use fully qualified class names in definitions, and they will be replaced with aliases (based on use clauses) or fully qualified names in the resulting code:, (*96)

$namespace = new Nette\PhpGenerator\PhpNamespace('Foo');
$namespace->addUse('Bar\AliasedClass');

$class = $namespace->addClass('Demo');
$class->addImplement('Foo\A') // will be simplified to A
    ->addTrait('Bar\AliasedClass'); // will be simplified to AliasedClass

$method = $class->addMethod('method');
$method->addComment('@return ' . $namespace->simplifyType('Foo\D')); // we manually simplify in comments
$method->addParameter('arg')
    ->setType('Bar\OtherClass'); // will be translated to \Bar\OtherClass

echo $namespace;

// or use the PsrPrinter for output in accordance with PSR-2 / PSR-12 / PER
// echo (new Nette\PhpGenerator\PsrPrinter)->printNamespace($namespace);

Result:, (*97)

namespace Foo;

use Bar\AliasedClass;

class Demo implements A
{
    use AliasedClass;

    /**
     * @return D
     */
    public function method(\Bar\OtherClass $arg)
    {
    }
}

Auto-resolving can be turned off this way:, (*98)

$printer = new Nette\PhpGenerator\Printer; // or PsrPrinter
$printer->setTypeResolving(false);
echo $printer->printNamespace($namespace);

 , (*99)

PHP Files

Classes, functions, and namespaces can be grouped into PHP files represented by the PhpFile class:, (*100)

$file = new Nette\PhpGenerator\PhpFile;
$file->addComment('This file is auto-generated.');
$file->setStrictTypes(); // adds declare(strict_types=1)

$class = $file->addClass('Foo\A');
$function = $file->addFunction('Foo\foo');

// or
// $namespace = $file->addNamespace('Foo');
// $class = $namespace->addClass('A');
// $function = $namespace->addFunction('foo');

echo $file;

// or use the PsrPrinter for output in accordance with PSR-2 / PSR-12 / PER
// echo (new Nette\PhpGenerator\PsrPrinter)->printFile($file);

Result:, (*101)

<?php

/**
 * This file is auto-generated.
 */

declare(strict_types=1);

namespace Foo;

class A
{
}

function foo()
{
}

Please note: No additional code can be added to the files outside of functions and classes., (*102)

 , (*103)

Generating from Existing Ones

In addition to being able to model classes and functions using the API described above, you can also have them automatically generated using existing ones:, (*104)

// creates a class identical to the PDO class
$class = Nette\PhpGenerator\ClassType::from(PDO::class);

// creates a function identical to the trim() function
$function = Nette\PhpGenerator\GlobalFunction::from('trim');

// creates a closure based on the provided one
$closure = Nette\PhpGenerator\Closure::from(
    function (stdClass $a, $b = null) {},
);

By default, function and method bodies are empty. If you also want to load them, use this method (requires the nikic/php-parser package to be installed):, (*105)

$class = Nette\PhpGenerator\ClassType::from(Foo::class, withBodies: true);

$function = Nette\PhpGenerator\GlobalFunction::from('foo', withBody: true);

 , (*106)

Loading from PHP Files

You can also load functions, classes, interfaces, and enums directly from a string containing PHP code. For example, to create a ClassType object:, (*107)

$class = Nette\PhpGenerator\ClassType::fromCode(<<<XX
    <?php

    class Demo
    {
        public $foo;
    }
    XX);

When loading classes from PHP code, single-line comments outside method bodies are ignored (e.g., for properties, etc.), as this library doesn't have an API to work with them., (*108)

You can also directly load an entire PHP file, which can contain any number of classes, functions, or even namespaces:, (*109)

$file = Nette\PhpGenerator\PhpFile::fromCode(file_get_contents('classes.php'));

The file's initial comment and strict_types declaration are also loaded. However, all other global code is ignored., (*110)

It requires nikic/php-parser to be installed., (*111)

(If you need to manipulate global code in files or individual statements in method bodies, it's better to use the nikic/php-parser library directly.), (*112)

 , (*113)

Class Manipulator

The ClassManipulator class provides tools for manipulating classes., (*114)

$class = new Nette\PhpGenerator\ClassType('Demo');
$manipulator = new Nette\PhpGenerator\ClassManipulator($class);

The inheritMethod() method copies a method from a parent class or implemented interface into your class. This allows you to override the method or extend its signature:, (*115)

$method = $manipulator->inheritMethod('bar');
$method->setBody('...');

The inheritProperty() method copies a property from a parent class into your class. This is useful when you want to have the same property in your class, but possibly with a different default value:, (*116)

$property = $manipulator->inheritProperty('foo');
$property->setValue('new value');

The implement() method automatically implements all methods and properties from the given interface or abstract class:, (*117)

$manipulator->implement(SomeInterface::class);
// Now your class implements SomeInterface and includes all its methods

 , (*118)

Variable Dumping

The Dumper class converts a variable into parseable PHP code. It provides a better and clearer output than the standard var_export() function., (*119)

$dumper = new Nette\PhpGenerator\Dumper;

$var = ['a', 'b', 123];

echo $dumper->dump($var); // outputs ['a', 'b', 123]

The Versions

25/07 2018

dev-master

9999999-dev https://nette.org

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

php code nette scaffolding

25/07 2018

v3.0.x-dev

3.0.9999999.9999999-dev https://nette.org

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

php code nette scaffolding

26/04 2018

v3.1.2

3.1.2.0 https://nette.org

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

php code nette scaffolding

26/04 2018

v3.0.4

3.0.4.0 https://nette.org

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

php code nette scaffolding

26/04 2018

v2.6.x-dev

2.6.9999999.9999999-dev https://nette.org

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

php code nette scaffolding

26/04 2018

v2.6.4

2.6.4.0 https://nette.org

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

php code nette scaffolding

30/03 2018

v3.0.3

3.0.3.0 https://nette.org

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

php code nette scaffolding

30/03 2018

v3.1.1

3.1.1.0 https://nette.org

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

php code nette scaffolding

26/09 2017

v3.0.2

3.0.2.0 https://nette.org

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

php code nette scaffolding

16/08 2017

v3.1.0

3.1.0.0 https://nette.org

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

php code nette scaffolding

14/07 2017

v2.6.3

2.6.3.0 https://nette.org

Nette PHP Generator

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

11/07 2017

v3.0.1

3.0.1.0 https://nette.org

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

php code nette scaffolding

18/03 2017

v3.0.0

3.0.0.0 https://nette.org

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

php code nette scaffolding

18/03 2017

v2.6.2

2.6.2.0 https://nette.org

Nette PHP Generator

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

14/03 2017

v2.6.1

2.6.1.0 https://nette.org

Nette PHP Generator

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

25/02 2017

v3.0.0-beta2

3.0.0.0-beta2 https://nette.org

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

php code nette scaffolding

24/02 2017

v2.6.0

2.6.0.0 https://nette.org

Nette PHP Generator

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

22/02 2017

v2.5.x-dev

2.5.9999999.9999999-dev https://nette.org

Nette PHP Generator

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

02/02 2017

v3.0.0-beta1

3.0.0.0-beta1 https://nette.org

Nette PHP Generator

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

13/01 2017

v2.5.0

2.5.0.0 https://nette.org

Nette PHP Generator

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

13/01 2017

v2.4.x-dev

2.4.9999999.9999999-dev https://nette.org

Nette PHP Generator

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

12/12 2016

v2.3.x-dev

2.3.9999999.9999999-dev https://nette.org

Nette PHP Generator

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

31/07 2016

v2.4.1

2.4.1.0 https://nette.org

Nette PHP Generator

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

17/06 2016

v2.3.6

2.3.6.0 https://nette.org

Nette PHP Generator

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

17/06 2016

v2.4.0

2.4.0.0 https://nette.org

Nette PHP Generator

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

06/02 2016

2.2.x-dev

2.2.9999999.9999999-dev https://nette.org

Nette PHP Generator

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

29/11 2015

v2.3.5

2.3.5.0 https://nette.org

Nette PHP Generator

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

09/10 2015

v2.3.4

2.3.4.0 https://nette.org

Nette PHP Generator

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

07/09 2015

v2.3.3

2.3.3.0 http://nette.org

Nette PHP Generator

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

22/08 2015

v2.3.2

2.3.2.0 http://nette.org

Nette PHP Generator

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

19/07 2015

v2.2.3

2.2.3.0 http://nette.org

Nette PHP Generator

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

11/07 2015

v2.3.1

2.3.1.0 http://nette.org

Nette PHP Generator

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

10/03 2015

v2.2.2

2.2.2.0 http://nette.org

Nette PHP Generator

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

18/02 2015

v2.3.0

2.3.0.0 http://nette.org

Nette PHP Generator

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

24/08 2014

v2.2.1

2.2.1.0 http://nette.org

Nette PHP Generator

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

24/06 2014

v2.2.0

2.2.0.0 http://nette.org

Nette PHP Generator

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires