定制 proyect-x/junior-team-framework 二次开发

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

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

proyect-x/junior-team-framework

Composer 安装命令:

composer require proyect-x/junior-team-framework

包简介

Framework for junior teams for create applications fast without complexity of frameworks like laravel or symfony

README 文档

README

Intention

This framework was created in focus of having an stable MVC structure based on Slim-Skeleton.

Features

  • Twig templates
  • Load environment files using vlucas/phpdotenv
  • Use Slim PHP v3
  • Support migrations/seeders using phinx
  • Support for abtraction layer for database using Eloquent illuminate/database
  • Monolog for Logging
  • CORS Middleware activated by uupola/cors-middleware

Create a new project

We only need to create a new project using composer

composer create-project proyect-x/junior-team-framework [directory_name]

Project setup

  • The instalation created an environment file named .env, the file contains the following parameters for configure our system:
    • PROJECT_NAME: name of our application, it's informative
    • SERVER_PORT: port for expose our system, this variable is used by docker-compose and composer start
    • ENV: environment for our application, Support the values DEV and PROD, if we put PROD, Twig will use cache for the templates and the errors will not be displayed.
    • DEBUG_LEVEL: Level for logging, the level supported are DEBUG, INFO, NOTICE, WARNING, ERROR and CRITICAL.
    • DB_DRIVER: driver for eloquent and phinx migrations, the drivers supported are MySQL, PostgreSQL, SQLite, SQL Server, please check the Eloquent and Phinx documentation.
    • DB_HOSTNAME: hostname or ip for the connection to the database (this parameter is used by docker-compose for create a link for the mysql container).
    • DB_DATABASE: database name, if you choose to use composer start you need to create the database manually, if you choose docker-compose the mysql container will create the database for you.
    • DB_USERNAME: username from the database
    • DB_PASSWORD: password from the database
    • DB_PORT: port from the database
    • DB_CHARSET: charset from the database
    • DB_COLLATION: collation from the database
    • TIMEZONE: timezone for the database and php containers.

Turning up the project

Using composer

We need to configure the database, after that we need to type the following command:

composer start

And our system will be displayed in the port specified in the .env file SERVER_PORT

Using docker-compose

We need to type the following command:

docker-compose up

And our system will be displayed in the port specified in the .env file SERVER_PORT, docker compose will create two containers, the first is a container with nginx and the second a mysql server.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-06-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固