ride/app
Composer 安装命令:
composer require ride/app
包简介
Base integration of the Ride framework libraries
README 文档
README
Base integration of the Ride framework libraries.
This module glues the needed libraries together to get a system with the following features:
- Flexible configuration
- Dependency injection
- Events
- Logging
- Modules
- Host system abstraction
This module is the starting point of the Ride framework. Below this module are libraries, above this module are Ride implementations.
What's In This Application
Libraries
- ride/lib-cache
- ride/lib-common
- ride/lib-dependency
- ride/lib-event
- ride/lib-log
- ride/lib-reflection
- ride/lib-system
Application
The Application interface is to run a service in the system. It's only method is service and is used by the CLI and web modules.
System
The System class is an extension of the same class in the system library. It adds access to the Ride framework and makes the following components available:
- System and configuration parameters
- Dependency injector
- File browser
- Log
- Autoloader
SystemInitializer
The SystemInitializer interface is used to initialize (or boot) the system.
One of the tasks of the system initializer is to add all modules to the file browser and, optionally, the autoloader. Read more about this in manual/Core/Modules.md.
You can add multiple system initializers to your system parameters located in application/config/parameters.php. If none is provided, the ComposerSystemInitializer is used.
DirectorySystemInitializer
The DirectorySystemInitializer class is used to add a custom module directory to the system. All modules inside the provided directory will be added to the file browser and all sources to the autoloader.
ComposerSystemInitializer
The ComposerSystemInitializer class is used to add all modules installed through Composer to the system. You can set a custom modules directory to add modules which are outside of the vendor directory.
Parameters
- log.action: Action level of the log. 0 to disable, 1 to log requests where an error has occured, 2 for warnings, 4 for information messages and 8 for debug messages.
- log.file: Path to the log file.
- log.level: Level of messages to log. 0 for everything, 1 for errors, 2 for warnings, ...
- log.truncate: Maximum size for the log file in kb.
- system.application: Dependency id of the default application
- system.binary.%command%: Full path to a binary command
- system.cache.dependencies: Flag to see if the dependencies should be cached
- system.cache.directory: Path to the directory of the application file cache pool
- system.cache.event: Path to the file name of the event cache
- system.cache.file: Path to the file of the application memory cache pool
- system.directory.user: Path to the directory of user content/uploads
- system.event.loader: Dependency id of the event loader
- system.event.listener.default: Dependency id of the event listener IO in use
- system.event.listener.cache: Dependency id of the cached event listener IO
- system.name: Name of the system, defaults to Ride
- system.secret: Secret key of the system for encryption and security
- system.timezone: Timezone for this application
Related Modules
- ride/app-database
- ride/app-i18n
- ride/app-image
- ride/app-mail
- ride/app-media
- ride/app-orm
- ride/app-template
- ride/app-validation
- ride/cli
- ride/cli-app
- ride/setup-app
- ride/web
Installation
You can use Composer to install this application.
composer require ride/setup-app
or for manual install:
composer require ride/app
ride/app 适用场景与选型建议
ride/app 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 6.31k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2014 年 02 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 ride/app 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ride/app 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 6.31k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 11
- 依赖项目数: 123
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-02-21