yetii/phpfile

Creates Basic PHP Files based on a schematic

Maintainers

Package info

github.com/UnDeAdYeTii/phpfile

pkg:composer/yetii/phpfile

Statistics

Installs: 20

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 1

0.4.0 2019-04-24 08:10 UTC

This package is not auto-updated.

Last update: 2026-03-05 18:22:03 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)