webteractive/expressionengine-env
Composer 安装命令:
composer create-project webteractive/expressionengine-env
包简介
ExpressionEngine CMS with PHP dotenv
README 文档
README
An ExpressionEngine boilerplate that supports PHP dotenv to improve configuration management under git deployment like Laravel Forge. Laravel Mix is also added to handle asset compilation with complimentary plugin to handle asset versioning URL. Tailwind CSS is also added because it's super awesome and why the hell not.
Requirements
- Composer
- PHP 7 or newer
- MySQL 5.6 or newer
- Node.JS / NPM
Installation
- Download this repository as zip and extract or run
composer create-project webteractive/expressionengine-env your-app. - Run
composer installto install dependency. This is optional if you use thecomposer create-projectway. - Import the
migration.sqlfile to an empty database i.e. (mysql/mariadb:mysql -uuser -p theemptydb < path/to/migration.sql). - Rename
.env.stubtoenvand update the required keys. This is optional if you use thecomposer create-projectway. - Visit the Admin page to verify installation by going to
/admin.php. The initial account isadmin/secret2019. Make sure to update the password!
What's inside?
A quick look at the top-level files and directories you'll see in a expressionengine-env project.
.
├── assets
├── node_modules
├── public
├── system
├── vendor
├── .env.stub
├── .gitignore
├── AUTHORS.md
├── composer.json
├── composer.lock
├── LICENSE.txt
├── Makefile
├── migration.sql
├── package-lock.json
├── package.json
├── README.md
├── tailwind.js
└── webpack.mix.js
The Migration SQL
The migration.sql is an SQL dump file of a freshly installed ExpressionEngine with pre-installed mix plugin. Once you imported this file, you won't need to run the ExpressionEngine install process. All you need to do is login to the Admin (go to /admin.php), add more configs and ultimately update the super secure password that has been initially provided.
Environment Variables
All config keys that has been assigned to the env helper method will not be changed via Admin. This is the key to not mess up your git on modifying configurations.
BASE_PATH - the path where your ExpressionEngine files are located. This should be the directory where the system can be found. This key is required.
BASE_URL - the base URL of your ExpressionEngine instance. This key is required.
DB_NAME - the database name. This key is required.
DB_USER - the database user name. This key is required.
DB_PASSWORD - the database user password. This key is required.
ENV - the current environment of your ExpressionEngine install. The value should be local for local development to enable LiveReload. Defaults to production.
ERROR_VISIBILITY - determines who can see PHP/MySQL errors when they occur. Defaults to 1. See for more details on this config key.
Assets Bundling
A webpack.mix.js file is also provided to get your started right away on bundling your assets. If you are familiar on how Laravel Mix works then this is no sweat to you! If this is your first encounter with Laravel Mix, visit https://laravel-mix.com/ for more details on how it works.
The assets directory should house all your source assets. But if you like adventures then fire away, put it anywhere you like! Just remember, put your bundles inside the public directory. See the sample entry in the webpack.mix.js file for more details.
To start bundling, run npm run dev to quick compile assets in development mode. To watch for changes, run npm run watch. Whenever npm run watch is fired, LiveReload is also enabled so your browser should be reloaded once a change in your assets is detected (after compilation). Run npm run prod to compile for production.
A Makefile is also provided that houses some shortcut commands if your OS (Linux and macOS) supports it. Run make dev to start the development right, this will trigger npm run watch. Run make prod to compile for production.
webteractive/expressionengine-env 适用场景与选型建议
webteractive/expressionengine-env 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 39 次下载、GitHub Stars 达 2, 最近一次更新时间为 2019 年 03 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「expressionengine」 「ee」 「phpdotenv」 「eecms」 「ee5」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 webteractive/expressionengine-env 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 webteractive/expressionengine-env 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 webteractive/expressionengine-env 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A multi-framework Composer library installer
A tool to edit phpdotenv files
A wrapper with a fluent interface for new and old versions of vlucas/phpdotenv or symfony/dotenv, providing a common interface to easily read values from .env files
Enable env variables to Kirby
Harness the power of Laravel in ExpressionEngine
Integration layer allowing use of the Laravel database library in CodeIgniter applications
统计信息
- 总下载量: 39
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2019-03-10