bandama/app-lite 问题修复 & 功能扩展

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

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

bandama/app-lite

Composer 安装命令:

composer create-project bandama/app-lite

包简介

Bandama Application Skeleton with Monolog and Kahlan

README 文档

README

Bandama App Lite is a skeleton project for Bandama Framework that includes Monolog for logging and Kahlan for unit tests.

Create a new project

It's recommended that you use Composer to create project.

$ composer create-project --no-interaction bandama/app-lite [project-name]

This will create new Bandama project and all required dependencies including Bandama Framework, Monolog and Kahlan. Bandama Project requires PHP 5.5 or newer.

Run the project

Got to the root directory of your project and run it typing

$ cd [project-name]
$ php -S localhost:8008 -t web web/app.php

Browse to http://localhost:8008

Project structure

  • app

    This folder contains globals elements of application. It contains App and Configuration classes.

    • core

      This folder contains App, Configuration and Controller classes which implements base application logic

    • App.php : This class allow to extend and customize application logic

    • Configuration.php : Class allowing customization of application configuration parameters

    • Controller.php : Base application controller class

    • config

      Config folder contains configuration parameters splitted in many files:

      • databases.php : Collection of databases configuration
      • parameters.php : Application base parameters
      • routes.php : Contains routes definition
      • services.php : Services used by application
      • sessions.php : User sessions parameters
      • settings.php : Merging of other configuration files
  • spec

    Contains unit tests for project

  • src

    Project source code

    • controllers

      Controllers classes

    • models

      Project models for interacting with databases and other sources of data

    • views

      Contains views

    • services

      Application services

  • var

    • logs

      Log files

  • vendor

    Contains third party library, including Bandama Framework, Monolog and Kahlan

  • web

    This folder contains public files

    • app.php : Application entry point

    It is the entry point of application

    • assets

      • css
      • images
      • js
    • data

      Contains another assets and data

    • plugins

      Contains plugins used in project e.g (bootstrap, jquery, etc.)

Change log

  • 1.2.0

    • Adding translator component
    • Using Kahlan for unit tests
  • 1.1.1

    • Bug fixed - Removing index.php file in .gitignore
  • 1.1.0

    • Improvement of application setup
    • Adding HelloServiceTest class
    • Adding basic layout content
    • Adding PDO Session Handler management
  • 1.0.1

    • Bug fixed in .htaccess

Credits

License

The Bandama Framework Skeleton is licensed under the MIT license. See License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-02-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固