定制 earc/core 二次开发

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

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

earc/core

Composer 安装命令:

composer require earc/core

包简介

eArc - the explicit architecture framework - core component

README 文档

README

Core component of the eArc framework. The eArc stands for explicit architecture. It is about the urge to make code as easy to comprehend as possible, and the striving to touch the programmers' freedom to code as little as possible. In short, it is about simplicity and good architecture.

earc/core handles aspects all earc components have in common. Users of the framework or some of its components will never need to install this package directly.

table of Contents

configuration

Place a file named .earc-config.php beneath the vendor dir. It's the configuration file for all the earc components.

<?php #.earc-config.php

return ['earc' => [
    'is_production_environment' => true
    //.. place here the parameters for the components
]];

Then put the following code in the bootstrap section of your framework or your index.php file.

use eArc\DI\DI;
use eArc\Core\Configuration;

DI::init();
Configuration::build();

That's it. You're ready to go.

customizing

If you want to put the configuration file somewhere else you can pass the filename as parameter to the build method.

Hint: If you prefer the YAML format and do not use php constructs in your configuration, you can use a yaml parser.

troubleshooting

If you get an error

PHP Fatal error:  Uncaught Error: Class 'eArc\DI\DI' not found

you most probably have not registered the composer autoloader yet. You can do this by requiring the composer autoload script in the vendor directory.

use eArc\DI\DI;
use eArc\Core\Configuration;

require '/absolute/path/to/your/vendor'.'/autoload.php';
DI::init();
Configuration::build();

Public components

All components can be used without the framework. Some components may depend on each other.

releases

release 1.1

  • PHP ^7.2 || ^8.0

release 1.0

  • complete rewrite

release 0.1

  • the first official release

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-05-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固