Skip to content

Commit fabdc71

Browse files
committed
Add composer.json to install this library via PHP composer package.
1 parent aa34339 commit fabdc71

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

composer.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "ixnode/bash-version-manager",
3+
"description": "Bash Version Manager",
4+
"type": "library",
5+
"license": "MIT",
6+
"keywords": ["version", "manager", "semantic", "versioning", "semver"],
7+
"authors": [
8+
{
9+
"name": "Björn Hempel",
10+
"email": "bjoern@hempel.li",
11+
"homepage": "https://www.hempel.li/"
12+
}
13+
],
14+
"autoload": {
15+
"psr-4": {
16+
"Ixnode\\BashVersionManager\\": "src"
17+
}
18+
},
19+
"require": {
20+
"php": "^7.4 || ^8.0"
21+
},
22+
"require-dev": {
23+
},
24+
"bin": [
25+
"bin/version-manager"
26+
],
27+
"scripts": {
28+
"test": "bin/version-manager --test",
29+
"php-version": "php --version",
30+
"bash-version": "bash --version"
31+
},
32+
"scripts-descriptions": {
33+
"test": "Runs all available tests.",
34+
"php-version": "Shows the PHP version.",
35+
"bash-version": "Shows the Bash version."
36+
}
37+
}

src/BashVersionManager.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/*
6+
* This file is part of the ixno/php-naming-conventions project.
7+
*
8+
* (c) Björn Hempel <https://www.hempel.li/>
9+
*
10+
* For the full copyright and license information, please view the LICENSE.md
11+
* file that was distributed with this source code.
12+
*/
13+
14+
namespace Ixnode\BashVersionManager;
15+
16+
/**
17+
* Class BashVersionManager
18+
*
19+
* @author Björn Hempel <bjoern@hempel.li>
20+
* @version 0.1.0 (2022-12-18)
21+
* @since 0.1.0 (2022-12-18) First version.
22+
*/
23+
class BashVersionManager
24+
{
25+
}

0 commit comments

Comments
 (0)