Skip to content

Instantly share code, notes, and snippets.

@akuehnis
akuehnis / php_crud_api_custom_controllers.md
Last active August 10, 2022 14:21
PHP-CRUD-API, how to use custom controllers

PHP-CRUD-API Custom Controllers

PHP-CRUD-API supports custom controllers. The usage is simple:

  1. Create a controller file
  2. Import the controller and make the controller known to the API using the config parameter 'customControllers'

Update August 2022: This code may be outdated. Please refer to the project documentation about custom controllers:

https://github.com/mevdschee/php-crud-api#custom-controller