framework-x
Slim
framework-x | Slim | |
---|---|---|
14 | 47 | |
846 | 1,581 | |
- | 0.4% | |
6.3 | 4.8 | |
4 months ago | 3 months ago | |
PHP | PHP | |
MIT License | MIT 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.
framework-x
-
Modern PHP features explained – PHP 8.0 and 8.1
Have a look at Framework X (https://framework-x.org). It's barebones, but provides routing and basic request/response handling to build your own stuff upon. It's based on ReactPHP so you can use it as standalone service or use it in shared hosting with FPM, whichever suits you.
-
I like the PHP constant RAM characteristics under a load but struggle to find a semi-decent req/s PHP framework/library for API backends
Using FrameworkX default hello world example I get 12.4K req/s on my M1. FrameworkX is using ReactPHP. Unless I'm reading activity monitor wrong it's ~10MB idle and 12,5 MB max.
-
Do I need Laravel for an HTTP API project? If so, why?
There are many micro-frameworks available like Slim, Mezzio(with Swoole may be), or if you are into async then you can also try Framework X(from core maintainer of ReactPHP). This frameworks have small footprints compare to Laravel, Symfony, etc. Yes, you can't get things like authentication, routing and other out of the box but they can easily be installed and configured to be used.
-
What have fibers been used for so far?
I saw it was mentioned in the Framework X
-
What is after OPcache ?
As others have mentioned, in certain scenarios using a long-running application server (rather than mod_php/php-fpm) to serve requests can make sense. There are a number of extensions and libraries available that facilitate this with asynchronous code execution - Swoole has already been mentioned but you may also want to check out ReactPHP (not related to JS React, other than they stole the name) and Framework X
-
Media Streaming with ReactPHP
The Framework X is an attempt to make ReactPHP into a micro framework, but I see little mention of it.
- Framework X - Reactive Web Application Framework
-
What would you use for simple PHP app with few routes and http client?
Framework-x https://github.com/clue/framework-x
-
Anyone have production examples or prototypes you built in Swoole?
With ReactPHP, I've written a couple websocket apps. Worked pretty great for that. https://framework-x.org/ is also a pretty good place to get started for a simple HTTP microservice-type app.
-
Persistent PHP code in an API?
Yeah ReactPHP will do this. I have an event source server running and it was pretty easy (once you get the hang of using react). I had an nginx proxy in front of it for tls. Have a look at https://framework-x.org too
Slim
-
The PHP Orkestra Framework
Currently Laravel is the "go to" for new PHP applications to mostly developers today, if not, plain PHP, Slim, Symfony and other frameworks does the job, but for Wordpress, custom PHP boilerplates or/and outdated PHP patterns (aka, single ton) is what we have for work in mostly cases, if not, hacky ways to integrate frameworks as Laravel itself or parts of it to leverage a better code structure.
-
Top 12 PHP Frameworks For Web Development in 2024
Slim is a micro PHP framework used for web development with 11.7k stars and 2k forks on GitHub. It has a simple and intuitive API development process. It is a micro-framework, meaning you only get a minimum of support for HTTP requests and forwarding requests to appropriate controllers. So the question is, why should you choose a micro-framework? Because it offers you flexibility and high extensibility.
-
Handling CORS with Slim 4
Slim 4, a minimalistic PHP micro-framework, offers middleware support to easily add CORS headers. Middleware in Slim acts like a series of layers through which your app sends a request. One such layer can be responsible for adding CORS headers.
-
How to make implement "Single Entry Point" in PHP App?
SlimPHP 3 Skeleton app shows this as well: https://github.com/slimphp/Slim-Skeleton/blob/3.1.8/public/index.php
- Whole PHP or just PHP on Laravel
-
Just created a dependency-free lightweight HTTP router
How hard did you look? There are plenty out there. FastRoute, Phroute, based on FastRoute, with basic middleware, League/Route - routing with middleware, using FastRoute, PSR 7 & 15, Slim Framework, at it's core, it like League/Route, etc. None of these require a full framework to use.
- Laravel considered harmful
- I'm looking for a php framework
-
How to structure Slim/PHP-DI Project?
You can have the container call in a config folder with a file called dependencies or how ever you want. A few existing examples of this is here - Slim calls this app/dependencies in this skeleton project and Odan's Skeleton has this as config/container in their project.
-
Hey, html and php problems
Maybe use this if you don't like to dive into bigger frameworks: https://www.slimframework.com/
What are some alternatives?
React - Event-driven, non-blocking I/O with PHP.
Lumen - The Laravel Lumen Framework.
nano - 🧬 Nano is a zero-config, no skeleton, minimal Hyperf distribution that allows you to quickly build a Hyperf application with just a single PHP file.
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.
easyswoole - swoole,easyswoole,swoole framework
Silex
020-end-to-end - Demonstrating end to end testing of a simple REST API
Bullet PHP - A resource-oriented micro PHP framework
tsf - coroutine and Swoole based php server framework in tencent
Siler - ⚡ Flat-files and plain-old PHP functions rockin'on as a set of general purpose high-level abstractions.
GroupCo - PHP的服务化框架。适用于Api、Http Server、Rpc Server;帮助原生PHP项目转向微服务化。出色的性能与支持高并发的协程相结合
Proton