Skip to content

Commit 8342898

Browse files
authored
Merge pull request #1 from articstudio/develop
First release
2 parents 14ead97 + 29928e8 commit 8342898

38 files changed

+4604
-0
lines changed

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
# -- IDE ----------------------------------------------
3+
/nbproject/
4+
.idea/
5+
6+
# -- Vendor -------------------------------------------
7+
vendor/
8+
/auth.json
9+
10+
# -- Develop ------------------------------------------
11+
/build/

bin/phpbin

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/usr/bin/env php
2+
<?php
3+
4+
// Check dependencies
5+
array_map(function($file) {
6+
if (defined('PHPBIN_COMPOSER_AUTOLOAD')) {
7+
return;
8+
}
9+
if (file_exists($file)) {
10+
define('PHPBIN_COMPOSER_AUTOLOAD', realpath($file));
11+
}
12+
}, [
13+
__DIR__ . '/../../../autoload.php',
14+
__DIR__ . '/../../autoload.php',
15+
__DIR__ . '/../vendor/autoload.php'
16+
]);
17+
18+
if (!defined('PHPBIN_COMPOSER_AUTOLOAD')) {
19+
fwrite(STDERR,
20+
'You need to set up the project dependencies using the following commands:' . PHP_EOL .
21+
'wget http://getcomposer.org/composer.phar' . PHP_EOL .
22+
'php composer.phar install' . PHP_EOL
23+
);
24+
exit(1);
25+
}
26+
27+
// Check TimeZone
28+
if (!ini_get('date.timezone')) {
29+
ini_set('date.timezone', 'UTC');
30+
}
31+
32+
require PHPBIN_COMPOSER_AUTOLOAD;
33+
34+
\Articstudio\PhpBin\Application::exec();

composer.json

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"name": "articstudio/php-bin",
3+
"type": "library",
4+
"description": "",
5+
"keywords": [
6+
"partio",
7+
"lingvo"
8+
],
9+
"homepage": "https://github.com/articstudio/php-bin",
10+
"authors": [
11+
{
12+
"name": "Artic studio",
13+
"email": "[email protected]"
14+
}
15+
],
16+
"require": {
17+
"php": ">=7.1.3",
18+
"jakub-onderka/php-console-highlighter": "^0.4.0",
19+
"jakub-onderka/php-parallel-lint": "^1.0",
20+
"localheinz/composer-normalize": "^1.0",
21+
"php-school/cli-menu": "^3.0",
22+
"phpmetrics/phpmetrics": "^2.3",
23+
"phpunit/phpunit": "~7.0",
24+
"squizlabs/php_codesniffer": "^3.3",
25+
"symfony/console": "^4.2",
26+
"symfony/process": "^4.2"
27+
},
28+
"require-dev": {},
29+
"config": {
30+
"optimize-autoloader": true,
31+
"preferred-install": "dist",
32+
"sort-packages": true
33+
},
34+
"extra": {},
35+
"autoload": {
36+
"psr-4": {
37+
"Articstudio\\PhpBin\\": "src/"
38+
}
39+
},
40+
"autoload-dev": {
41+
"psr-4": {
42+
"Articstudio\\PhpBin\\Tests\\": "tests/"
43+
}
44+
},
45+
"repositories": [
46+
{
47+
"type": "composer",
48+
"url": "https://composer.articstudio.com"
49+
},
50+
{
51+
"type": "composer",
52+
"url": "https://packagist.org"
53+
}
54+
],
55+
"minimum-stability": "dev",
56+
"prefer-stable": true,
57+
"scripts": {},
58+
"support": {
59+
"issues": "https://github.com/articstudio/php-bin/issues",
60+
"source": "https://github.com/articstudio/php-bin"
61+
}
62+
}

0 commit comments

Comments
 (0)