Skip to content

Commit 1400550

Browse files
committed
wip
1 parent 6bc3f34 commit 1400550

File tree

1 file changed

+9
-33
lines changed

1 file changed

+9
-33
lines changed

README.md

Lines changed: 9 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,15 @@ These are all the configuration options and their default value between brackets
7373

7474
## Compilation
7575

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-
8076
You can compile all files into a single "`api.php`" file using:
8177

8278
php build.php
8379

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.
8585

8686
## Limitations
8787

@@ -115,34 +115,10 @@ The following features are supported:
115115
- Spatial/GIS fields and filters supported with WKT
116116
- Generate API documentation using OpenAPI tools
117117
- 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
146122

147123
## Middleware
148124

0 commit comments

Comments
 (0)