DEV Community

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

Posted on

5

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.

Top comments (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

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

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay