2017 © Pedro Peláez
 

library php-writer

write php files using php.

image

bassam-nab/php-writer

write php files using php.

  • Thursday, February 15, 2018
  • by bassam-nab
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

php-writer

via composer

composer require bassam-nab/php-writer

example


(new PhpWriter()) ->openClass('Models\Payment', function (PhpWriter $doc) { return $doc ->addUse('SomeTrait') ->addConstant('STATUS_PENDING', 1) ->addConstant('STATUS_REJECTED', 2) ->addConstant('STATUS_ACCEPTED', 3) ->addLine() ->addVar('payment_id') ->addVar('numberOfPayments', 0, 'public', true) ->addLine() ->addMethod('doPay', ['$transaction_id', '...$otherOrders'], 'public', true) ->addMethod('setPrice', ['$price' => 0]); }, 'SomeClass', ['myInterface', 'AndOtherInterface'])->exportFile();

The Versions

15/02 2018

dev-master

9999999-dev

write php files using php.

  Sources   Download

MIT

The Development Requires

by Bassam Nabriss

php writer

15/02 2018

1.1

1.1.0.0

write php files using php.

  Sources   Download

MIT

The Development Requires

by Bassam Nabriss

php writer

15/02 2018

1.0.3

1.0.3.0

write php files using php.

  Sources   Download

MIT

The Development Requires

by Bassam Nabriss

php writer

15/02 2018

1.0.2

1.0.2.0

write php files using php.

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Bassam Nabriss

php writer

15/02 2018

1.0

1.0.0.0

write php files using php.

  Sources   Download

MIT

The Requires

  • php ^5.5

 

The Development Requires

by Bassam Nabriss

php writer

15/02 2018

1.0.1

1.0.1.0

write php files using php.

  Sources   Download

MIT

The Requires

  • php ^5.5

 

The Development Requires

by Bassam Nabriss

php writer