Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
- 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
Show file tree
Hide file tree
Showing 9 changed files with 154 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
@@ -0,0 +1,5 @@
vendor/
*.swp
.vimproject
*.log
tests/log/
13 changes: 13 additions & 0 deletions .travis.yml
@@ -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;
20 changes: 20 additions & 0 deletions README.md
@@ -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.
35 changes: 35 additions & 0 deletions composer.json
@@ -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/"
}
}
}
71 changes: 71 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file added library/Phlyty/App.php
Empty file.
Empty file added tests/PhltyTest/AppTest.php
Empty file.
5 changes: 5 additions & 0 deletions tests/bootstrap.php
@@ -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';
5 changes: 5 additions & 0 deletions tests/phpunit.xml.dist
@@ -0,0 +1,5 @@
<phpunit bootstrap="./bootstrap.php">
<testsuite name="Phlyty Test Suite">
<directory>./</directory>
</testsuite>
</phpunit>

0 comments on commit bba0962

Please sign in to comment.