Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
keithy committed Jun 11, 2019
0 parents commit 46dcbfa
Show file tree
Hide file tree
Showing 22 changed files with 1,117 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitignore
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

8 changes: 8 additions & 0 deletions .travis.yml
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
21 changes: 21 additions & 0 deletions LICENSE
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.
26 changes: 26 additions & 0 deletions README.md
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
13 changes: 13 additions & 0 deletions actors/StdClass.php
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);
}
}
60 changes: 60 additions & 0 deletions composer.json
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": {}
}
Loading

0 comments on commit 46dcbfa

Please sign in to comment.