|11 days ago||6 months ago|
|MIT License||BSD 3-clause "New" or "Revised" License|
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
can I use thecodeholic/tc-php-mvc-core framework for production?
2 projects | reddit.com/r/PHP | 30 May 2022
If you want to use a framework but avoid the "kitchen sink" you could use micro frameworks like Lumen, Slim or Symfony (with the symfony/skeleton starter) and then add packages as required.
Recommended Lightweight PHP Frameworks for REST Development?
5 projects | reddit.com/r/PHP | 21 May 2022
You can use a simple framework like slim or go with Symfony.
Should you use Laravel 9 over Lumen 9?
2 projects | reddit.com/r/laravel | 13 Apr 2022
If you need a very lightweight framework I would personally recommend slim
Next step from making web apps with plain PHP and JS? What to learn next? Laravel? React?
1 project | reddit.com/r/webdev | 10 Mar 2022
If you are concerned about the framework being too cumbersome, there are more lightweight options out there too. I have heard good things about Slim https://www.slimframework.com/
Project rewrite; to Laravel, or not to Laravel...?
2 projects | reddit.com/r/PHP | 1 Feb 2022
Do you have a router? I presume not as most people that don't use a framework end up with 100's of PHP files in the htdocs/public folder that all act as a kind of router/controller. If that is the case, you may benefit from a micro-framework like Slim. Don't port over all your pages in one go, instead migrate them one by one as needed over a period of time. A good strategy is just if you need to touch the page for something, do the migration at that time.
A personal project | roady v1.0.0
8 projects | reddit.com/r/PHP | 7 Dec 2021
Extra tip: To prepare yourself to use other frameworks in a job, look at how they lay out their application directory structure. They tend to be somewhat similar, and you can use those common structures to make your roady app structure more in line with them or to get to grips with them for when you get a job in the industry. Slim is a microframework with minimal extra features, so it may be a good starting point to compare with if you wanted to (https://www.slimframework.com/), and they have a skeleton app you could use to examine its structure (https://github.com/slimphp/Slim-Skeleton). People will probably also happily fight to the death about which framework is better, but you find one you like or a company you want to work for uses. Slim is just a suggestion.
Yes, PHP Is Worth Learning/Using in $Current_year
6 projects | news.ycombinator.com | 17 Nov 2021
My team has been using the Slim Framework for years and it has servered us well for years. It is a microframework and follows most of the PSR standards so it is possible to replace libraries with relative ease.
Ever wanted to use the Symfony Messenger component, but didn't know how? I've got you covered!
1 project | reddit.com/r/PHP | 10 Oct 2021
Not a huge framework, but I like https://www.slimframework.com/ , used with twig and a few other libraries
Is there a more straightforward way to pass variables from the server to the client?
1 project | reddit.com/r/webdev | 4 Oct 2021
Sure but it is specific to the slim framework: https://github.com/slimphp/Slim-Skeleton
How do I include my index.php file automatically to all other files?
5 projects | reddit.com/r/PHPhelp | 27 Sep 2021
You could take a look at the Slim Framework and the Slim Skeleton Application for some general guidance on how to do things. I've done some kind of "homebrew" framework stuff before, and typically the most important things you need are:
1 project | reddit.com/r/PHPhelp | 6 Apr 2022
There're libraries that help with the PHP part, if you need them.
Controller common functions and composition over Inheritance
2 projects | reddit.com/r/PHPhelp | 1 Feb 2022
Thanks for this. I'm already using nikic's Fast Route as my router. This is an interesting solution and definitely one to keep in mind. However, I would worry that it is going to lead to duplicated code, and potentially too much divergence between the two systems for this particular application, and consistency between the methods of access is going to be key. One thing you do remind me of though is the need to implement some kind of API version check.
When to use _construct(), when _invoke()?
1 project | reddit.com/r/PHPhelp | 2 Nov 2021
It can be used for request handler classes that get called by your router/dispatcher, such as FastRoute. A more direct example can be found in this Modern PHP Without a Framework tutorial - the invoke()-specific bit is toward the end of the "Middleware Dispatcher" section, but it's all a good read for anyone building an API.
Piko router, a lightweight and blazing fast router for PHP
6 projects | dev.to | 7 Oct 2021
To demonstrate this search efficiency, I wrote some benchmark tests to compare Piko router against Fastroute and Symfony Router which are references in their domain.
Weekly "ask anything" thread
8 projects | reddit.com/r/PHP | 6 Sep 2021
I have a question regarding PHP routing. There are plenty of implementations but one that comes to mind is FastRoute by Nikic. Its regex router and I was just curious whether its more performant to run this kind of implementation compared to just a cached associative array to map against for routes.
URL Rewriting With Htaccess
1 project | reddit.com/r/PHPhelp | 28 Aug 2021
Redirect everything to index.php and use a routing library like FastRoute (or write your own).
Basic question on project files organization
4 projects | reddit.com/r/PHPhelp | 5 Aug 2021
Hello I need help with organizing our project files, I'm out of ideas with the pathing of our project.
5 projects | reddit.com/r/PHPhelp | 1 Aug 2021
Should I rewrite my project using an existing framework?
6 projects | reddit.com/r/PHPhelp | 29 Jul 2021
Localhost only searches for index.php
1 project | reddit.com/r/PHPhelp | 21 Apr 2021
This is a very simplistic router, just to show the concept. There are much more powerful, secure and flexible routers, like https://github.com/nikic/FastRoute and https://symfony.com/doc/current/create_framework/routing.html.
What are some alternatives?
Lumen - The Laravel Lumen Framework.
AltoRouter - PHP routing class. Lightweight yet flexible. Supports REST, dynamic and reversed routing.
Klein - A fast & flexible router
Aura.Router - A web router implementation for PHP.
Bullet PHP - A resource-oriented micro PHP framework
Siler - ⚡ Flat-files and plain-old PHP functions rockin'on as a set of general purpose high-level abstractions.
php-mvc - A simple PHP model-view-controller framework, built step-by-step as part of the "Write PHP like a pro: build an MVC framework from scratch" course on Udemy.
phroute - A super fast PHP router, with route parameters, restful controllers, filters and reverse routing.
Route - Fast PSR-7 based routing and dispatch component including PSR-15 middleware, built on top of FastRoute.
Laravel - Laravel is a web application framework with expressive, elegant syntax. We’ve already laid the foundation for your next big idea — freeing you to create without sweating the small things.