Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Created README.md defining goals - Created composer.json/composer.lock bringing in required components from ZF2 - Added stubs for App class and testcase - Added test scaffolding and travis-ci setup - Created .gitignore file
- Loading branch information
Matthew Weier O'Phinney
committed
Aug 4, 2012
0 parents
commit bba0962
Showing
9 changed files
with
154 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
vendor/ | ||
*.swp | ||
.vimproject | ||
*.log | ||
tests/log/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
language: php | ||
|
||
php: | ||
- 5.4 | ||
|
||
before_install: | ||
- curl -s https://getcomposer.org/installer | php -- --quiet | ||
- php composer.phar install --dev | ||
- wget http://cs.sensiolabs.org/get/php-cs-fixer.phar | ||
|
||
script: | ||
- phpunit -c tests/phpunit.xml.dist | ||
- output=$(php php-cs-fixer.phar fix -v --dry-run --level=psr2 .); if [[ $output ]]; then while read -r line; do echo -e "\e[00;31m$line\e[00m"; done <<< "$output"; false; fi; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Phlyty - A Microframework using ZF2 components | ||
============================================== | ||
|
||
Phlyty is a microframework using [ZF2 components](http://packages.zendframework.com/ "ZF2"). | ||
|
||
Basically, ZF2 components are used to provide the boring parts: | ||
|
||
- Routing | ||
- HTTP request and response | ||
- Templating | ||
- Events | ||
- Logging | ||
|
||
Like a variety of other microframeworks, the core application object simply | ||
allows you to attach callables to defined routes. You then interact with the | ||
HTTP request and response, and potentially router, and return something that the | ||
application can then send back in the HTTP response. | ||
|
||
The goal is to use PHP 5.4 idioms and provide a lightweight mechanism for | ||
building prototypes and simple websites. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"name": "phly/phlyty", | ||
"description": "PHP 5.4 Microframework built on top of ZF2 components", | ||
"keywords": ["zf2", "microframework", "mvc"], | ||
"homepage": "http://github.com/weierophinney/phlyty", | ||
"type": "library", | ||
"license": "BSD-3-Clause", | ||
"authors": [ | ||
{ | ||
"name": "Matthew Weier O'Phinney", | ||
"email": "me@mwop.net", | ||
"homepage": "http://mwop.net/" | ||
} | ||
], | ||
"repositories": [ | ||
{ | ||
"type": "composer", | ||
"url": "http://packages.zendframework.com/" | ||
} | ||
], | ||
"minimum-stability": "dev", | ||
"require": { | ||
"php": ">=5.3.3", | ||
"zendframework/zend-eventmanager": "2.0.*", | ||
"zendframework/zend-http": "2.0.*", | ||
"zendframework/zend-log": "2.0.*", | ||
"zendframework/zend-mvc": "2.0.*", | ||
"phly/mustache": ">=1.2.0" | ||
}, | ||
"autoload": { | ||
"psr-0": { | ||
"Phlyty": "library/" | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php | ||
if (!file_exists(__DIR__ . '/../vendor/autoload.php')) { | ||
throw new DomainException('You do not appear to have run "php composer.phar install"; autoloading is disabled, and tests cannot be run.'); | ||
} | ||
include_once __DIR__ . '/../vendor/autoload.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<phpunit bootstrap="./bootstrap.php"> | ||
<testsuite name="Phlyty Test Suite"> | ||
<directory>./</directory> | ||
</testsuite> | ||
</phpunit> |