DEV Community

Cover image for Creating a PHP-Slim server using OpenAPI
Daniel Persson
Daniel Persson

Posted on

Creating a PHP-Slim server using OpenAPI

We use the OpenAPI generator to create a stub server implementation of PHP-Slim. Then we implement the different endpoints using an SQLite backend and talk about the challenges using the database and handle CORS.

Discussion (2)

Collapse
lzanonistm profile image
lzanoni-stm

Hello, could you give me some hints for using OpenApi-generator for php-slim4: I don't understand how to use the Model: I get classes with only private members.

Collapse
kalaspuffar profile image
Daniel Persson Author

Well, those private members are still called when you use the model right?

If you have your code open I can take a look otherwise it's hard to help.

Hope this helps.

Best regards
Daniel