yetii/phpfile

Creates Basic PHP Files based on a schematic

0.4.0 2019-04-24 08:10 UTC

This package is not auto-updated.

Last update: 2025-03-06 13:20:41 UTC


README

This is a basic PHP File Generator library where you supply a schematic (json file or array) and it can produce a PHP files.

Customise

  • Namespaces
  • Uses
    • Aliases
  • Class
    • Types
    • Names
    • Extends
    • Implements
    • Uses
    • Properties
      • Visibility
      • Defaults
    • Methods
      • Visibility
      • Args
        • Typehints
        • Defaults
        • References

Usage

$schema = new \YeTii\PhpFile\Schematic();

$schema->read('schematic.json')->out('output.php');
// or
$data = [ /* schematic rules */ ];
$schema->read($data)->out('output.php');

Features

  • Indenting + Indenting Control
  • More (fucking look yourself)