@@ -73,15 +73,15 @@ These are all the configuration options and their default value between brackets
73
73
74
74
## Compilation
75
75
76
- The code resides in the "` src ` " directory. You can access it at the URL:
77
-
78
- http://localhost:8080/src/records/posts/1
79
-
80
76
You can compile all files into a single "` api.php ` " file using:
81
77
82
78
php build.php
83
79
84
- NB: The script appends the classes in alphabetical order (directories first).
80
+ The non-compiled code resides in the "` src ` " directory. You can access it at the URL:
81
+
82
+ http://localhost:8080/src/records/posts/1
83
+
84
+ NB: The build script will install and run [ Composer] ( https://getcomposer.org/ ) to install the required dependencies.
85
85
86
86
## Limitations
87
87
@@ -115,34 +115,10 @@ The following features are supported:
115
115
- Spatial/GIS fields and filters supported with WKT
116
116
- Generate API documentation using OpenAPI tools
117
117
- Authentication via JWT token or username/password
118
-
119
- ### Extra Features
120
-
121
- These features are new in v2 and were not included in v1:
122
-
123
- - Does not reflect on every request (better performance)
124
- - Complex filters (with both "and" & "or") are supported
125
- - Support for output of database structure in JSON
126
- - Support for boolean and binary data in all database engines
127
- - Support for relational data on read (not only on list operation)
128
- - Support for middleware to modify all operations (also list)
129
- - Error reporting in JSON with corresponding HTTP status
130
- - Support for basic authentication and via auth provider (JWT)
131
- - Support for basic firewall functionality
132
- - Prevent database scraping using list limits
133
-
134
- ### Dropped features
135
-
136
- The following features of v1 were dropped in v2:
137
-
138
- - ~~ Streaming data, low memory footprint~~
139
- - ~~ Supports file upload from web forms (multipart/form-data)~~
140
- - ~~ Condensed JSON output: first row contains field names~~
141
- - ~~ Relation "transforms" (of condensed JSON) for PHP and JavaScript~~
142
- - ~~ Unstructured data support through JSON/JSONB~~
143
- - ~~ SQLite support~~
144
-
145
- NB: You can find v1 here: https://github.com/mevdschee/php-crud-api/tree/v1
118
+ - Support for reading database structure in JSON
119
+ - Support for modifying database structure using REST endpoint
120
+ - Security enhancing middleware is included
121
+ - Standard compliant: PSR-2, PSR-4, PSR-7, PSR-15 and PSR-17
146
122
147
123
## Middleware
148
124
0 commit comments