Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit bba0962ce90c2259ae7be72bc5e5b04abf51ffd6 0 parents
Matthew Weier O'Phinney authored
5 .gitignore
@@ -0,0 +1,5 @@
+vendor/
+*.swp
+.vimproject
+*.log
+tests/log/
13 .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 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 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 composer.lock
@@ -0,0 +1,71 @@
+{
+ "hash": "b4f1d1c16db1c39935460df76fa2e216",
+ "packages": [
+ {
+ "package": "phly/mustache",
+ "version": "dev-master",
+ "source-reference": "bf4bb6eed7385ce5c137dcaa66325bd73ee7f815",
+ "commit-date": "1343915507"
+ },
+ {
+ "package": "zendframework/zend-code",
+ "version": "2.0.0rc2"
+ },
+ {
+ "package": "zendframework/zend-di",
+ "version": "2.0.0rc2"
+ },
+ {
+ "package": "zendframework/zend-eventmanager",
+ "version": "2.0.0rc2"
+ },
+ {
+ "package": "zendframework/zend-http",
+ "version": "2.0.0rc2"
+ },
+ {
+ "package": "zendframework/zend-loader",
+ "version": "2.0.0rc2"
+ },
+ {
+ "package": "zendframework/zend-log",
+ "version": "2.0.0rc2"
+ },
+ {
+ "package": "zendframework/zend-modulemanager",
+ "version": "2.0.0rc2"
+ },
+ {
+ "package": "zendframework/zend-mvc",
+ "version": "2.0.0rc2"
+ },
+ {
+ "package": "zendframework/zend-servicemanager",
+ "version": "2.0.0rc2"
+ },
+ {
+ "package": "zendframework/zend-stdlib",
+ "version": "2.0.0rc2"
+ },
+ {
+ "package": "zendframework/zend-uri",
+ "version": "2.0.0rc2"
+ },
+ {
+ "package": "zendframework/zend-validator",
+ "version": "2.0.0rc2"
+ },
+ {
+ "package": "zendframework/zend-view",
+ "version": "2.0.0rc2"
+ }
+ ],
+ "packages-dev": null,
+ "aliases": [
+
+ ],
+ "minimum-stability": "dev",
+ "stability-flags": [
+
+ ]
+}
0  library/Phlyty/App.php
No changes.
0  tests/PhltyTest/AppTest.php
No changes.
5 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 tests/phpunit.xml.dist
@@ -0,0 +1,5 @@
+<phpunit bootstrap="./bootstrap.php">
+ <testsuite name="Phlyty Test Suite">
+ <directory>./</directory>
+ </testsuite>
+</phpunit>
Please sign in to comment.
Something went wrong with that request. Please try again.