kigkonsult/pcgen 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kigkonsult/pcgen

Composer 安装命令:

composer require kigkonsult/pcgen

包简介

PHP Code Generation support package

README 文档

README

the PHP Code Generation support package
  • create PHP class / interface / trait code opt shipped with file docBlock with namespace, use, extends, implements with constuctor and factory methods with constants and properties with opt. getter(+iterator) and setter methods allow insert of (pre-produced, logic) code

  • create docBlocks in compliance with phpdoc

  • create PHP function/method frame (shell) code with arguments and closure use variables with property(/variable) set code with method return code allow insert of (pre-produced, logic) code

  • create code for single or chained function/method invoke(s)

  • create define variable property/variable/constant code with PHP primitive value, array, closure or callback

  • create code for variable/property value assign from variable/property value (scalar) fixedSourceValue ternary or null coalesce operator expression other PHP expression constant function/method invoke(s)

  • create logic code using

    • control structures
    • ternary or null coalesce operator expressions
    • try/catch-blocks
  • create code for function/method return of variable/property value (scalar) fixedSourceValue ternary or null coalesce operator expression other PHP expression constant

    • function/method invoke(s)

More info in the PcGen Summary.

Misc

The target PHP version code is, default, the current PHP version but configurable.

Using a PHP reserved name as name (ex FQCN/className) will thow an InvalidArgumentException.

You may need to readjust result output code style and indents.

Tests

Tests are executed in DISPLAY mode, to alter, update PHP const in top of phpunit.xml.
Assert PHP 7+ using PHPCompatibility and PHPStan.

Support

For support use github.com PcGen. Non-emergence support issues are, unless sponsored, fixed in due time.

Sponsorship

Donation using paypal.me/kigkonsult are appreciated. For invoice, please e-mail.

INSTALL
composer require kigkonsult/pcgen:dev-master

Composer, in your composer.json:

{
    "require": {
        "kigkonsult/pcgen": "dev-master"
    }
}

Otherwise , download and acquire..

namespace Kigkonsult\PcGen;
...
include 'pathToSource/Kigkonsult/PcGen/autoload.php';
License

This project is licensed under the GPLv3 License

统计信息

  • 总下载量: 56
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: gpl-3.0
  • 更新时间: 2020-04-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固