Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
KimSia Sim committed Nov 30, 2015
0 parents commit 8220711
Show file tree
Hide file tree
Showing 6 changed files with 106 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# StreamCake plugin for CakePHP

## Installation

You can install this plugin into your CakePHP application using [composer](http://getcomposer.org).

The recommended way to install composer packages is:

```
composer require your-name-here/StreamCake
```
36 changes: 36 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{

"name": "simkimsia/stream-cakephp",
"description": "Build newsfeeds and activity feeds on CakePHP 3.x using getstream.io",
"type": "cakephp-plugin",
"homepage": "https://getstream.io/",
"keywords": ["getstream", "activity", "newsfeed", "activity feed", "notification feed", "aggregated feed"],
"license": "MIT",
"authors": [
{
"name": "Kim Stacks",
"email": "kimcity@gmail.com"
}
],

"require": {
"php": ">=5.4.16",
"cakephp/cakephp": "~3.0",
"get-stream/stream": "~2.2"
},
"require-dev": {
"phpunit/phpunit": "*"
},
"autoload": {
"psr-4": {
"StreamCake\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"StreamCake\\Test\\": "tests",
"Cake\\Test\\": "./vendor/cakephp/cakephp/tests"
}
},
"minimum-stability": "stable"
}
6 changes: 6 additions & 0 deletions config/routes.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php
use Cake\Routing\Router;

Router::plugin('StreamCake', function ($routes) {
$routes->fallbacks('DashedRoute');
});
43 changes: 43 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
colors="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
bootstrap="./tests/bootstrap.php"
>
<php>
<ini name="memory_limit" value="-1"/>
<ini name="apc.enable_cli" value="1"/>
</php>

<!-- Add any additional test suites you want to run here -->
<testsuites>
<testsuite name="StreamCake Test Suite">
<directory>./tests/TestCase</directory>
</testsuite>
</testsuites>

<!-- Setup a listener for fixtures -->
<listeners>
<listener
class="\Cake\TestSuite\Fixture\FixtureInjector"
file="./vendor/cakephp/cakephp/src/TestSuite/Fixture/FixtureInjector.php">
<arguments>
<object class="\Cake\TestSuite\Fixture\FixtureManager" />
</arguments>
</listener>
</listeners>

<!-- Prevent coverage reports from looking in tests and vendors -->
<filter>
<blacklist>
<directory suffix=".php">./vendor/</directory>
<directory suffix=".ctp">./vendor/</directory>

<directory suffix=".php">./tests/</directory>
<directory suffix=".ctp">./tests/</directory>
</blacklist>
</filter>

</phpunit>
10 changes: 10 additions & 0 deletions src/Controller/AppController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace StreamCake\Controller;

use App\Controller\AppController as BaseController;

class AppController extends BaseController
{

}
Empty file added webroot/empty
Empty file.

0 comments on commit 8220711

Please sign in to comment.