Why did I choose Slim Framework
I searched a good PHP framework to my project “Image optimizer API”. That was not easy but, I found it. The winner is Slim Framework.
Why will I use Slim Framework?
“Image optimizer API” is my first project with Slim, but I believe that is exactly that what I need. I don’t need a big and slow framework with many options. I want a small and fast framework for API.
When I looked at creator list, I was under the impression: Josh Lockhart, Andrew Smith, Rob Allen. Everyone knows these names. That must be a modern and contemporary framework with the best PHP standards.
I will use this skeleton (Twig, Flash messages, and Monolog):
https://github.com/akrabat/slim3-skeleton (Rafał thanks for this link)
Create new project list very easy. We need only the composer. This is only one command:
composer create-project --no-interaction --stability=dev akrabat/slim3-skeleton my-app
That is! We can start.
Type just:
cd my-app
php -S 0.0.0.0:8888 -t public public/index.php
Now should you see the result on http://localhost:8888
In the next post, I will show you how to create authorization process.
No Comment