-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 46dcbfa
Showing
22 changed files
with
1,117 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,9 @@ | ||
*~ | ||
vendor/ | ||
states/ | ||
nbproject/private | ||
*.sqlite3 | ||
.DS_Store | ||
composer.5.json | ||
composer.lock | ||
|
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,8 @@ | ||
language: php | ||
php: [7.3] | ||
before_script: | ||
- composer self-update -q | ||
- if [ -n "$GITHUB_TOKEN" ]; then composer config github-oauth.github.com ${GITHUB_TOKEN}; fi; | ||
- composer -vvv update --prefer-dist | ||
- composer show -i | ||
script: php "okay/Sql.ok/_ok.php" -I |
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2019 Keith | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,26 @@ | ||
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE.md) | ||
[![Build Status](https://travis-ci.com/keithy/primo-pisara-php.svg?branch=master)](https://travis-ci.com/keithy/primo-pisara-php) | ||
[![GitHub issues](https://img.shields.io/github/issues/keithy/primo-pisara-php.svg)](https://github.com/keithy/primo-pisara-php/issues) | ||
[![Latest Version](https://img.shields.io/github/release/keithy/primo-pisara-php.svg)](https://github.com/keithy/primo-pisara-php/releases) | ||
[![PHP from Travis config](https://img.shields.io/travis/php-v/keithy/primo-pisara-php.svg)](https://travis-ci.com/keithy/primo-pisara-php) | ||
|
||
## primo-pisara-php | ||
|
||
### Persistence I/O Stage Actors Roles => Architecture | ||
|
||
*Applying the DCI Architecture to create a PHP Framework for **Uncle Bob** to be proud of.* | ||
|
||
### Primary Goal: | ||
|
||
1. The WEB is an I/O device! - Slim/PSR7 etc. is a plugin. | ||
2. The database is a plugin. | ||
3. Develop and Organize in UseCases - "**Stages**", upon which the **Actors** perform. | ||
|
||
---- | ||
|
||
* P - Persistence | ||
* I - I/O | ||
* S - Stages | ||
* A - Actors | ||
* R - Roles | ||
* A - Architecture |
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 @@ | ||
<?php | ||
|
||
namespace Actor; | ||
|
||
class StdClass implements \DCI\RolePlayerInterface { | ||
|
||
use \DCI\RolePlayer; | ||
|
||
function toArray() | ||
{ | ||
return json_decode(json_encode($this), true); | ||
} | ||
} |
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,60 @@ | ||
{ | ||
"name": "primo\/pisara", | ||
"type": "library", | ||
"description": "Persistence I\/O Stage Actors Roles => Architecture", | ||
"keywords": [ | ||
"pdo", | ||
"psr7", | ||
"architecture" | ||
], | ||
"homepage": "https:\/\/github.com\/keithy\/primo-pisara-php", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Keithy", | ||
"email": "keithy@consultant.com", | ||
"role": "Developer" | ||
} | ||
], | ||
"repositories": [ | ||
{ | ||
"type": "vcs", | ||
"url": "https:\/\/github.com\/keithy\/primo-pisara-php.git" | ||
}, | ||
{ | ||
"type": "vcs", | ||
"url": "https:\/\/github.com\/keithy\/okay-php.git" | ||
}, | ||
{ | ||
"type": "vcs", | ||
"url": "https:\/\/github.com\/keithy\/dci-php.git" | ||
}, | ||
{ | ||
"type": "vcs", | ||
"url": "https:\/\/github.com\/keithy\/primo-pdo-php.git" | ||
} | ||
], | ||
"require": { | ||
"mbrowne\/dci": "dev-kphmods", | ||
"primo\/pdo": "dev-master" | ||
}, | ||
"require-dev": { | ||
"robmorgan\/phinx": "^0.10.7", | ||
"fzaninotto\/faker": "^1.8", | ||
"okay\/okay": "dev-master" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Persistence\\": "src\/Persistence", | ||
"Actor\\": "src\/actors" | ||
}, | ||
"classmap": [ | ||
"persistence\/", | ||
"io\/", | ||
"stages\/", | ||
"actors\/" | ||
] | ||
}, | ||
"autoload-dev": {}, | ||
"scripts": {} | ||
} |
Oops, something went wrong.