Skip to content

Commit 1358420

Browse files
committed
Init
0 parents  commit 1358420

File tree

331 files changed

+18857
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

331 files changed

+18857
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*~
2+
.idea
3+
vendor
4+
node_modules
5+
*.dev.php

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2016 DezByte
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<img src="https://raw.githubusercontent.com/DezByte/Colibri/master/static/colibri.png" width="301" />
2+
3+
### Yet Another PHP ORM
4+
🙈 🙉 🙊
5+
6+
- [Documentation](docs)
7+
8+
#### Many idea taken from great PHP ORM Framework [Doctrine2](https://github.com/doctrine/doctrine2)
9+
10+
<a name="#installation"></a>
11+
## Installation
12+
`composer require dezbyte/colibri-orm`

bin/colibri

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env php
2+
<?php
3+
4+
include('colibri.php');

bin/colibri.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@echo off
2+
if "%PHPBIN%" == "" set PHPBIN=php
3+
"%PHPBIN%" "colibri" %*

bin/colibri.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
use Colibri\ColibriORM;
4+
use Colibri\Generator\Application;
5+
use Symfony\Component\Console\Command\Command;
6+
7+
include_once __DIR__ . '/../vendor/autoload.php';
8+
9+
$application = new Application('ColibriORM', ColibriORM::versionName());
10+
11+
$iterator = new DirectoryIterator(sprintf('glob://%s/../src/Colibri/Generator/Commands/*.php', __DIR__));
12+
$namespace = '\\Colibri\\Generator\\Commands\\';
13+
14+
foreach ($iterator as $file) {
15+
$class = sprintf('%s%s', $namespace, $file->getBasename('.php'));
16+
$reflection = new ReflectionClass($class);
17+
18+
if(false === $reflection->isAbstract() && $reflection->isSubclassOf(Command::class)) {
19+
/** @var Command $command */
20+
$command = $reflection->newInstance();
21+
$application->add($command);
22+
}
23+
}
24+
25+
$application->run();
26+

composer.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"name": "dezbyte/colibri-orm",
3+
"description": "ColibriORM - Yet Another PHP ORM",
4+
"keywords": ["php orm","colibri","colibri orm","dezbyte colibri orm"],
5+
"authors": [
6+
{
7+
"name": "Ivan Gontarenko",
8+
"email": "[email protected]",
9+
"homepage": "http://cv.dezz.pro/",
10+
"role": "Developer"
11+
}
12+
],
13+
"license": "MIT",
14+
"type": "library",
15+
"minimum-stability": "dev",
16+
"prefer-stable" : true,
17+
"require": {
18+
"php": ">=5.6",
19+
"colibriphp/parameters": "~0.1",
20+
"colibriphp/html": "~0.1",
21+
"symfony/yaml": "~2.3||~3.0",
22+
"symfony/console": "~2.3||~3.0",
23+
"behat/transliterator": "~1.1",
24+
"psr/log": "~1.0",
25+
"psr/cache": "~1.0"
26+
},
27+
"autoload": {
28+
"psr-4": {
29+
"Colibri\\": "src/Colibri"
30+
}
31+
}
32+
}

0 commit comments

Comments
 (0)