ghalusa/php-skeleton-app
最新稳定版本:0.1.1
Composer 安装命令:
composer require ghalusa/php-skeleton-app
包简介
An MVC-based PHP skeleton application for rapid development
README 文档
README
The PHP Skeleton App
The PHP Skeleton App creates an object-oriented PHP MVC environment, tailored for rapid development. The environment makes use of the Slim PHP micro framework, Twig for templating, and Twitter Bootstrap 3 for the theme.
Out of the box, it provides the ability to set up and run a public-facing website, authenticate to the administrative side, and create users and groups. All of the baseline database tables are created on first run, along with the first "Universal Administrator".
This is an Initial Pre-Release of The PHP Skeleton App
This is my first go at publishing something extensive on GitHub. I'm far from perfect, and have been in somewhat of a bubble. Regardless, I have decided to get my feet wet so I can collect feedback from the community, and grow as a developer. So, your constructive criticism is encouraged. I'll do my best to learn from any mistakes and deliver the goods.
Roadmap
-
While the application works, it admittedly requires some refinements to get it to a level I'm happy with, mainly with the architecture and coding standards.
-
The goal is to get the codebase to a level which conforms to the Framework Interoperability Group's (PHP-FIG) PHP Standard Recommendation (PSR).
-
That is to say, the codebase is heavily under development and currently evolving. Use if you wish, but know that there may be some big changes along the way. I will try to keep things backwards-compatible, but there are no guarantees until the codebase meets the aforementioned benchmarks.
Thanks!
-Gor
Installing the PHP Skeleton App on DigitalOcean (the complete guide)
Features
-
Quick 5-minute installation
(Provided the server environment is set up)
-
Simple configuration
-
Easy templating with custom views using Twig
-
Twitter Bootstrap 3.3.x
"Carousel" template included for the public website
"Dashboard" template included for the administrative interface
-
Site Module
The public site
-
Authenticate Module
With local authentication, out-of-the-box. Oauth schemes coming soon (e.g. Twitter, Google, Facebook, Github).
-
User Account Module
For user management, complete with a self-registration form and the ability to reset forgotten passwords.
-
Group Module
Assign users to groups for greater control over permissions
-
Dashboard Module
Default landing page for the administrative side
-
More coming soon...
Requirements (LAMP)
These requirements are what I have found to be true. It's likely that I may have missed something along the way. If so, please let me know.
Linux
- So far, only tested on Linux Ubuntu 14.04 (trusty) running on an Amazon EC2 instance and another on a DigitalOcean Droplet.
Instructions for a Digital Ocean Droplet
Installing the PHP Skeleton App on Digital Ocean (the complete guide)
Apache
- Modules: alias, deflate, dir, env, headers, mime, php5, rewrite, setenvif
MySQL
PHP >= 5.3
- Extensions: FileInfo, mysql, PDO, pdo_mysql, php5-curl, php5-json, php5-mcrypt
Git
Composer
Environment Check
To check to see if you have all of the necessary components in place, you can run the "Environment Check" script:
http://YOUR_DOMAIN/webapp_installer/library/env.php
Getting Started
STEP 1
Run Composer (non global installation)
php composer.phar create-project ghalusa/php-skeleton-app /PATH/TO/YOUR_EMPTY_WEB_ROOT_DIRECTORY/ dev-master
OR... Run Composer (global installation)
composer create-project ghalusa/php-skeleton-app /PATH/TO/YOUR_EMPTY_WEB_ROOT_DIRECTORY/ dev-master
STEP 2
Make Sure Apache Has Permissions to Do Stuff
(This can be changed back after the installation is finished.)
sudo chown -R www-data:www-data /PATH/TO/YOUR_EMPTY_WEB_ROOT_DIRECTORY/
STEP 3
Run the Web App Installer...
Point your browser to the root of your web environment...
http://YOUR_DOMAIN/
... And Fill Out the Form
You will need:
- A valid email address for the creation of the administrative account.
- The location, username, and password of a MySQL database.
That's It!
At this point, you should have successfully spawned a complete "PHP Skeleton App". Dig in, and start adding your own "Modules"!
Documentation
- PHP Skeleton App Documentation (coming soon)
- PHPDocs
- Until I get the documentation out there, you can look at the anatomy of any of the modules which are included and present by default.
- On deck: I'm going to develop a "Module Creator", which will spawn a bare-bones module at the click of a button, or via command line.
About the Author
The PHP Skeleton App is created and maintained by Goran Halusa.
Follow @phpskeleton on Twitter to receive the very latest news and updates about The PHP Skeleton App.
Acknowledgements
- PHP Weekly: Thanks for including The PHP Skeleton App in your weekly email!
Disclaimer
The PHP Skeleton App is in active development, and test coverage is continually improving.
Open Source License
The PHP Skeleton App is released under the MIT public license.
ghalusa/php-skeleton-app 适用场景与选型建议
ghalusa/php-skeleton-app 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 249 次下载、GitHub Stars 达 50, 最近一次更新时间为 2015 年 01 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「mvc」 「OOP」 「app」 「Skeleton」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 ghalusa/php-skeleton-app 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ghalusa/php-skeleton-app 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 ghalusa/php-skeleton-app 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Kinikit - PHP Application development framework MVC component
A php library to bootstrap the use of Domain Driven Design valueObjects
Super simple HTTP client
Alfabank REST API integration
Kipopay payment gateway library OOP (PHP)
Small extensible framework in PHP
统计信息
- 总下载量: 249
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 50
- 点击次数: 19
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-01-03