macrominds/app 问题修复 & 功能扩展

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

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

macrominds/app

Composer 安装命令:

composer require macrominds/app

包简介

Basic lib to simplify App setup with IoC, .env and configuration

README 文档

README

Basic lib to simplify App setup with IoC, .env and configuration

Usage

Create your own app and add the traits you need. The default basic App already provides use HasContainer.

use Macrominds\App\App;

class MyApp extends App {
    use \Macrominds\Config\UsesDotEnv;
    use \Macrominds\Config\IsConfigurable;
    use \Macrominds\Services\AllowsServiceRegistration;
    use \Macrominds\App\HasDefaultProjectPath;

    protected function registerServices(string $projectPath) 
    {
        $this->registerDotEnv($projectPath);
        $this->registerDefaultConfig();
        $this->registerProjectPathProvider($projectPath);
    }
}

Coding Style

Run vendor/bin/php-cs-fixer fix . to apply coding style fixes.

Testing this Project

Run ./vendor/bin/phpunit to run the tests.

Automatic testing and docker images

This project provides a .gitlab-ci.yml and thus uses GitLab CI/CD.

To build the images locally:

$ ./ci.bash build-all-local

Run phpunit inside the containers:

$ ./ci.bash test-all-local

Build and publish the images for gitlab CI (also see gitlab docs):

$ ./ci.bash build-all-remotes-and-publish

Reuse testing setup for your projects

Include

to your project's .gitlab-ci.yml.

If necessary, override the used variables.

See .gitlab-ci.yml for an example of local includes and see the GitLab documentation for includes for a deep dive into local and remote include options and how to override variables.

Metrics and Coverage

  • metrics: composer app:phpmetrics
  • coverage report: composer app:coverage The reports are stored in the report directory. Both scripts will output the path to the reports after successful completion.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: ISC
  • 更新时间: 2020-05-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固