formagic/formagic
Composer 安装命令:
composer require formagic/formagic
包简介
Form generator for PHP 5
关键字:
README 文档
README
Thank you for your interest in Formagic. The source files within are subject to the new BSD license that is bundled with this package in the file LICENSE.
SYSTEM REQUIREMENTS
There are not many requirements for using Formagic, PHP 5.1 and above will do (PHP 4 is not supported). Formagic will run with any php.ini settings. It is designed to run without errors or warnings down to E_STRICT level.
INSTALLATION
The easiest way to include Formagic into your project is using Composer. This will download the necessary sources and create the autoloader for you, so you can just start using Formagic without further ado.
{
"require": {
"formagic/formagic": "1.5.6"
}
}
You can also just unpack the ZIP-File you can download at GitHub into a directory of your choice and include the Formagic autoloader in your code:
<?php require_once '/path/to/formagic/src/Formagic/Autoloader/Autoloader.php'; Formagic_Autoloader::register();
USAGE
Please visit http://www.formagic-php.net for examples and How-Tos. Here is a very short example of Formagic to get you started:
<?php $form = new Formagic(); $form ->addItem( 'input', 'myInput', array( 'label' => 'My first input', 'rules' => 'mandatory' ) ) ->addItem( 'submit', 'mySubmit', array( 'label' => 'Send' ) ); // check if form only contains valid values if ($form->validate()) { echo "submitted and ok<br />"; $form->setReadonly(true); } // displays the form echo $form->render();
Of course there is much more to Formagic than this, but this will get you a picture how easy it is to create HTML forms with Formagic.
API DOCUMENTATION
The API documentation is created using phpDocumentor. You will find the current API documentation here: http://www.formagic-php.net/docs/api/
FORMAGIC LINKS
You will find the official Formagic project site here: http://www.formagic-php.net
formagic/formagic 适用场景与选型建议
formagic/formagic 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3.76k 次下载、GitHub Stars 达 7, 最近一次更新时间为 2013 年 09 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「generator」 「html」 「Forms」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 formagic/formagic 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 formagic/formagic 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 formagic/formagic 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Memio's PrettyPrinter, used to generate PHP code from given Model
Texy converts plain text in easy to read Texy syntax into structurally valid (X)HTML. It supports adding of images, links, nested lists, tables and has full support for CSS. Texy supports hyphenation of long words (which reflects language rules), clickable emails and URL (emails are obfuscated again
ConfirmationField is a form field for Atk14 applications. It's like the BooleanField (checkbox) but the ConfirmationField must be ticked.
Field for number with restricted count of digits and decimal places
HTML and form generation
Build forms from schema
统计信息
- 总下载量: 3.76k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2013-09-23