Skip to content

Commit 592dc2f

Browse files
authored
Update README.md
1 parent fd7ff9e commit 592dc2f

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

README.md

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,7 @@ phpcore framework is a simple and easy to use MVC framework for web application
2323
}
2424
}
2525
```
26-
4. Create file composer.json
27-
```json
28-
{
29-
"autoload": {
30-
"psr-4": {
31-
"phpcore\\": "src/server"
32-
}
33-
}
34-
}
35-
```
36-
Run below command in console to install composer autoloading
26+
4. Run below command in console to install composer autoloading
3727
```
3828
> composer install
3929
```
@@ -226,14 +216,20 @@ Steps to create a Web API with phpcore framework.
226216
## Use Doctrine 2 to work with database
227217
This example will create a Web API that returns data from SQLite with Doctrine, make sure that SQLite PDO has been enabled in PHP configuration.
228218
1. Install Composer, copy phpcore to your project folder and configure your web server like step 3 in quick start
229-
2. Create file composer.json
219+
2. Modify file composer.json
230220
```json
231221
{
222+
"name": "thnguyendev/phpcore",
223+
"description": "The phpcore framework.",
224+
"version": "2.0.0",
225+
"keywords": ["framework", "phpcore"],
226+
"license": "MIT",
227+
"type": "project",
232228
"autoload": {
233229
"psr-4": {
234-
"phpcore\\": "src/server"
230+
"phpcore\\": "src/server"
235231
}
236-
},
232+
},
237233
"require": {
238234
"doctrine/orm": "2.5.*"
239235
}

0 commit comments

Comments
 (0)