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

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more