File tree Expand file tree Collapse file tree 1 file changed +10
-14
lines changed Expand file tree Collapse file tree 1 file changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -23,17 +23,7 @@ phpcore framework is a simple and easy to use MVC framework for web application
23
23
}
24
24
}
25
25
```
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
37
27
```
38
28
> composer install
39
29
```
@@ -226,14 +216,20 @@ Steps to create a Web API with phpcore framework.
226
216
## Use Doctrine 2 to work with database
227
217
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.
228
218
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
230
220
```json
231
221
{
222
+ "name": "thnguyendev/phpcore",
223
+ "description": "The phpcore framework.",
224
+ "version": "2.0.0",
225
+ "keywords": ["framework", "phpcore"],
226
+ "license": "MIT",
227
+ "type": "project",
232
228
"autoload": {
233
229
"psr-4": {
234
- "phpcore\\": "src/server"
230
+ "phpcore\\": "src/server"
235
231
}
236
- },
232
+ },
237
233
"require": {
238
234
"doctrine/orm": "2.5.*"
239
235
}
You can’t perform that action at this time.
0 commit comments