Skip to content

Commit

Permalink
build: update version phpRestApi
Browse files Browse the repository at this point in the history
  • Loading branch information
fullstackondemand committed Oct 19, 2023
1 parent 5dae53b commit 8841212
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 18 deletions.
6 changes: 6 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Database Variables
HOST_NAME = ''
USER_NAME = ''
PASSWORD = ''
DATABASE_NAME = ''
ACCESS_TOKEN = ''
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Php Rest API
This is create for start **Php Reset API** and easily manage and scale your database.
This is create for start **Php Rest API** and easily manage and scale your database.

## Installation
Run the Composer command to install the latest stable version of RestJS:
Expand All @@ -11,14 +11,14 @@ $ composer create-project restjs/restapi
## Getting Started
- Create new **Database** with `database_name`.
- Import php-rest-api.sql file in **MySQL Database**.
- Configure database variables in env.php:
- Configure database variables in .env:

```
define('SERVER_NAME', '');
define('USER_NAME', '');
define('PASSWORD', '');
define('DATABASE_NAME', '');
define('ACCESS_TOKEN', '');
HOST_NAME = ''
USER_NAME = ''
PASSWORD = ''
DATABASE_NAME = ''
ACCESS_TOKEN = ''
```

### Used Feature
Expand Down
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
"prefer-stable": true,
"require": {
"php": "7.1.*|7.2.*|7.3.*|7.4.*|8.0.*|8.1.*",
"restjs/php-rest-api": "^1.0"
"restjs/php-rest-api": "^2.0",
"vlucas/phpdotenv": "^5.5"

},
"scripts": {
"post-create-project-cmd": [
Expand Down
10 changes: 0 additions & 10 deletions env.php

This file was deleted.

0 comments on commit 8841212

Please sign in to comment.