Skip to content

Commit c0ccad9

Browse files
committed
Initial API structure for Lone Star PHP
0 parents  commit c0ccad9

File tree

15 files changed

+960
-0
lines changed

15 files changed

+960
-0
lines changed

.env.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
PHINX_DB_TYPE={{DB_TYPE}}
2+
PHINX_DB_HOST={{DB_HOST}}
3+
PHINX_DB_NAME={{DB_NAME}}
4+
PHINX_DB_USER={{DB_USER}}
5+
PHINX_DB_PASS={{DB_PASS}}

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/vendor/*
2+
/logs/*
3+
.DS_STORE
4+
.env

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Setting Up Database Credentials
2+
------------------------
3+
copy .env.example to .env with your specific environment variable values
4+
5+
Running Migrations
6+
------------------------
7+
```bash
8+
export $(cat .env | xargs) && ./vendor/bin/phinx migrate
9+
```

composer.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"require": {
3+
"aura/sql": "2.1.*",
4+
"monolog/monolog": "1.*",
5+
"php": ">=5.4.0",
6+
"robmorgan/phinx": "0.3.*",
7+
"slim/slim": "2.*",
8+
"slimcontroller/slimcontroller": "0.4.*",
9+
"vlucas/phpdotenv": "1.0.*@dev"
10+
},
11+
12+
"autoload": {
13+
"psr-4": {
14+
"Lonestar\\": "src/Lonestar"
15+
}
16+
}
17+
}

0 commit comments

Comments
 (0)