yetii/phpfile

Creates Basic PHP Files based on a schematic

Installs: 20

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 2

Open Issues: 1

pkg:composer/yetii/phpfile

0.4.0 2019-04-24 08:10 UTC

This package is not auto-updated.

Last update: 2025-10-02 16:32:55 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)