jzechy/sandbox-z

预配置的PHP7.1 Nette沙盒。

1.0.2 2017-12-14 10:28 UTC

This package is not auto-updated.

Last update: 2024-09-15 03:49:56 UTC


README

Latest stable license Downloads Total

预配置的PHP7.1 Nette沙盒。

使用

composer create-project jzechy/sandbox-z

Composer 依赖

沙盒已预配置并准备好以下包

  • nette/nette Nette 框架 Metta 包。
  • kdyby/translation 翻译扩展。
  • kdyby/console Symfony 控制台实现。
  • nextras/mail-panel 将电子邮件捕获到 Tracy 调试器栏中。
  • nextras/orm 数据库 ORM 扩展。
  • nextras/migrations 数据库迁移。
  • nette/tester PHP 单元测试。开发依赖。

Composer 项目

Composer 有用的项目,在安装 Sandbox-Z Composer 之后安装。

  • nette/code-checker 一个简单的工具,用于检查源代码是否符合 Nette 编码标准集。

结构

  • components 常用组件文件夹。
  • config 项目配置文件。
  • lang 翻译者的语言资源。
  • model 模型类文件夹。
  • modules 应用程序模块文件夹。
    • front 默认前端模块。
  • presenter 常用展示者文件夹。

基本类

  • BasePresenter 基础展示者类。
  • Component 组件的基础类。
  • Form 表单组件的基础类。
  • Orm 用于存储库的 Nextras ORM 模型类。
  • RouterFactory 默认路由类。

BIN 文件

  • code.bat 文件,用于运行 app 文件夹中所有文件的 code-checker。
  • console.bat 文件,用于运行 Kdyby\Console。