Skip to content

Commit d7044ea

Browse files
committed
initial commit
0 parents  commit d7044ea

File tree

14 files changed

+5011
-0
lines changed

14 files changed

+5011
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.idea
2+
/vendor

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2018 Gábor Németh
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: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Database Connection String Parser
2+
Small service to parse database connection string into parts.
3+
4+
## About
5+
This package allows you to parse database connection string into parts.
6+
7+
## Installation
8+
Require the ngabor84/laravel-escher-auth package in your composer.json and update your dependencies:
9+
```bash
10+
composer require laravel-dbconnstring-parser
11+
```
12+
13+
## Usage with Laravel
14+
Add the service provider to the providers array in the config/app.php config file as follows:
15+
```php
16+
'providers' => [
17+
...
18+
\Service\Database\ConnectionStringParser\Providers\ServiceProvider::class,
19+
]
20+
```
21+
22+
## Usage with Lumen
23+
Add the following snippet to the bootstrap/app.php file under the providers section as follows:
24+
```php
25+
$app->register(\Service\Database\ConnectionStringParser\Providers\ServiceProvider::class);
26+
```
27+

composer.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"name": "ngabor84/laravel-dbconnstring-parser",
3+
"description": "Small service to parse database connection string into parts",
4+
"keywords": ["laravel", "lumen", "database", "connection", "string", "parser"],
5+
"homepage": "https://github.com/ngabor84/laravel-dbconnstring-parser",
6+
"license": "MIT",
7+
"type": "library",
8+
"authors": [
9+
{
10+
"name": "Gabor Nemeth",
11+
"email": "negabor@gmail.com"
12+
}
13+
],
14+
"require": {
15+
"php": "^7.1",
16+
"illuminate/support": "^5.7"
17+
},
18+
"require-dev": {
19+
"laravel/framework": "^5.7",
20+
"laravel/lumen-framework": "^5.7",
21+
"phpunit/phpunit": "^7.4",
22+
"orchestra/testbench": "^3.7",
23+
"squizlabs/php_codesniffer": "^3.3",
24+
"phpstan/phpstan": "^0.10.5",
25+
"slevomat/coding-standard": "^4.8"
26+
},
27+
"autoload": {
28+
"psr-4": {
29+
"Service\\Database\\ConnectionStringParser\\": "src/"
30+
}
31+
},
32+
"autoload-dev": {
33+
"psr-4": {
34+
"Service\\Database\\ConnectionStringParser\\Tests\\": "tests/"
35+
}
36+
},
37+
"extra": {
38+
"laravel": {
39+
"providers": [
40+
"Service\\Database\\ConnectionStringParser\\Providers\\ServiceProvider"
41+
]
42+
}
43+
},
44+
"scripts": {
45+
"analyze": "./vendor/bin/phpstan analyze -l 5 src/",
46+
"check-style": "./vendor/bin/phpcs --standard=ruleset.xml -ps --colors src/",
47+
"fix-style": "./vendor/bin/phpcbf -p --standard=ruleset.xml src/",
48+
"test": "./vendor/bin/phpunit -c phpunit.xml"
49+
},
50+
"minimum-stability": "dev",
51+
"prefer-stable": true
52+
}

0 commit comments

Comments
 (0)