定制 simplydi/skeleton 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

simplydi/skeleton

Composer 安装命令:

composer create-project simplydi/skeleton

包简介

Simple and Minimal PHP Skeleton for any project (inspired from Mezzio/Zend Expressive)

README 文档

README

Note: do not use yet... there may be huge changes as per the necessity

A Simple and Minimal PHP Skeleton for any Project.

  • use any component you want... for anything
  • no lock-ins
  • change the project structure if you want
  • do anything... it's just a bare bone that you have to put flesh, skin and clothes on!

What you get out of the box:

  • just a project skeleton (readymade project structure)
  • a TemplateRenderer interface for rending templates using any engine of your choice (twig or plates or latte or any other -> you decide)
  • a simple configurations system that can be accessed with config('command.name') anywhere from the app or via \SimplyDi\Skeleton\Config\Config class's getConfig method.
  • Functions.php containing all common functions that you'd like to access including 'env()' for environment vars, esc() for escaping vars, base_url() etc.
  • tool file in root that can be used to create controllers at your desired namespace by running php tool create: controller ControllerName --namespace NameSpaceHere and a few other commands.

The project does not even offer a debugger since it leaves all those decisions to you regarding what components you want to use.

Documentation

REQUIREMENTS

(will be updated soon...)

QUICKSTART

Note: If you want to leave all the component decisions to us and install the best components for http, routing, etc, run the command in root: php tool skeleton:setup.

Step 1: Install the skeleton

composer create-project simplydi/skeleton

Step 2: Decide if you want to use dependency injection.

Yes? No? You decide. It's your app.

If no... just remove the file that included Dependencies.php and move to the next step.

If yes...

Install any dependency injection component via composer. Say, symfony/dependency-injection.

composer require symfony/dependency-injection

Open Dependencies.php and edit it to use the dependency container like below. (Note that you can, if you want, put your dependencies in src/Config/Dependencies.yaml file that will be accessed via $dependencies variable provided in Dependencies.php).

WORK IN PROGRESS

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-08-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固