Permalink
Browse files

Initial commit

- 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...
0 parents commit bba0962ce90c2259ae7be72bc5e5b04abf51ffd6 Matthew Weier O'Phinney committed Aug 3, 2012
Showing with 154 additions and 0 deletions.
  1. +5 −0 .gitignore
  2. +13 −0 .travis.yml
  3. +20 −0 README.md
  4. +35 −0 composer.json
  5. +71 −0 composer.lock
  6. 0 library/Phlyty/App.php
  7. 0 tests/PhltyTest/AppTest.php
  8. +5 −0 tests/bootstrap.php
  9. +5 −0 tests/phpunit.xml.dist
@@ -0,0 +1,5 @@
+vendor/
+*.swp
+.vimproject
+*.log
+tests/log/
@@ -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;
@@ -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.
@@ -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.

Oops, something went wrong.
No changes.
No changes.
@@ -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';
@@ -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.