Skip to content

phpfit/source-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phpfit/source-generator

Generate php source code based on provided configs. This module is not yet completed.

Installation

composer require phpfit/source-generator

Usage

<?php

use PhpFit\SourceGenerator\Generator;

$array = [
    'string' => 'string',
    'escape' => 'do\'a',
    'integer' => 12,
    'float' => 12.33
];

$source = Generator::array($array);

TODO

  1. Rewrite function
  2. Recreate object class
  3. Shorten inline array
  4. Class writer

License

The phpfit/source-generator library is licensed under the MIT license. See License File for more information.

About

Source generator based on provided configs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages