Just one more info about the permissions on folders. It seems that symfony 3.x had permissions problems with /var folder. It was changed in version 4 using umask. When creating a project, /var folder is set automatically to 0777, but I'm not sure how it's done.
Michael Mayer
@lastzero
Interesting! Maybe you can add that as comment to the issue I created on GitHub yesterday?
We're not checking permissions or existance of the cache folder to improve performance. But it could be done when composer runs.
Michael Mayer
@lastzero
Released new versions of Symlex and Symlex Core today... Symlex Core is upgraded to PHPUnit 8.0 while Symlex itself has to stay with 7.x as Codeception does not support 8.x yet... lots of API changes. Functionality didn't change, just a small issue in the REST router fixed: HEAD is automatically redirected to cgetAction() if cheadAction() does not exist (previously redirected to getAction(), which was a bug).
If you like Symlex, please spread the word / share the link... this is just a side project for me, not a business. So I need your help to promote it. In return, I keep it updated and give it away for free in the hope that developers find it useful :)
phpbenchmarks
@phpbenchmarks
hi :)
Michael Mayer
@lastzero
Moin Moin 🚀
Michael Mayer
@lastzero
I've just published Symlex 4.3.0. It includes RoadRunner, a high-performance PHP application server written in Go.
Difficult to find a faster combination of framework and server for building PHP apps ⚡️
New release: Symlex 4.4.1 is upgraded to RoadRunner 1.5.2, Symfony 4.4.1 and PHP 7.4. Docs were also improved to simplify installation. Hope you like it. No major changes needed to the (intentionally lean) base architecture, it's really just maintaining dependencies from time to time.
Michael Mayer
@lastzero
We know our stack is really helpful to developers, especially when starting new PHP projects today.
However, we don't have much time (or financial benefit) promoting our framework next to 10 million others. So please spread the word.
Michael Mayer
@lastzero
HAPPY NEW YEAR 🥂
rofeex
@rofeex
Hi Devs I was wondering how we can connect to a Mysql database ?
Michael Mayer
@lastzero
Hey @rofeex, was on vacation and just came back :)
You can set the connection parameters in the config files... our example app uses a MySQL database.
it seems very complex to me sorry as i said i'm quite a newbie
Michael Mayer
@lastzero
It's easier to start with the boilerplate in our main repo and delete what you don't need than creating everything yourself starting from our REST exmample
rofeex
@rofeex
i'll try that thanks
my main goal for today is to be able to fetch all the data from my table that's all
Michael Mayer
@lastzero
Of course you can use any database library you like, the only concept really is that you use the service container (yml files) for dependency injection
Our main repo has a users rest controller that returns all users
You may also refer to the Symfony docs for setting up a Web server, pretty much the same incl rewrite rules. The latest version in the main repo uses RoadRunner, which is special in that the request doesn't terminal but the server keeps Symlex running for performance reasons.