Cycle ORM | Slim | |
---|---|---|
7 | 50 | |
1,243 | 1,595 | |
0.1% | 0.1% | |
7.4 | 1.2 | |
16 days ago | about 2 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.
Cycle ORM
-
Cash: A small jQuery alternative for modern browsers
Thanks. It's a small custom framework built from libraries, some custom, some third party.
- File based HTTP router running on top of https://frankenphp.dev/
- ORM/SQL with: https://github.com/cycle/orm but this is preference. Anything works. From SQL builders to ORMs.
I'll try to explain their form handling:
Forms almost always POST to their own GET URL.
If you GET /user/save you'll get back HTML and `` to build the form.<p>If you POST /user/save you're expected to pass the entire form data PLUS an "operation" parameter which is used by the backend to decide what should be done and returned.<p>For example if user clicks [add new user] button, the "operation" parameter has value of "btnNewUser.click".<p>Why pass operation parameter? Because business forms can have more than just a [submit] button.<p>For example, there might be a datagrid filter value being changed (operation: "txtFilter.change"), or perhaps a dropdown search to select a city name from a large list (operation: "textCitySearch.change"), it can be a postal code to address lookup (operation: "txtPostalCode.change"), etc.<p>On the backend, the pseudocode looks somewhat like this but it's cleaner/safer because of encapsulation, validation, error handling, data sanitization, model binding and csrf/xss protection:<p><pre><code> function user_save($operation) {
-
RoadRunner: High-performance PHP application server written in Golang
From the same developers :
PHP framework : https://spiral.dev/
ORM library : https://cycle-orm.dev/
-
PHP in 2023?
The language is not that important, if you know Php, you learn another one in weeks (not you, Rust!) important and source of income is the knowledge of Design patterns and for what implementation to use which specific Pattern. PHP have a great ecosystem regarding design patterns. As there are the psr. Mostly, the Frameworks implement these recommendations: - dependency injection in Symfony, yii and spiral - Data Mapper implemented in doctrine or in cycle-orm.
-
[Symfony] - Dynamique database connection
Either use PDO directly, use Doctrine DBAL (not ORM) or if you need an ORM, check out Cycle ORM which is completely dynamic and supports configuration on-the-fly.
- Cycle DataMaper ORM 2.0 released - composite keys, any collection type, STI, JTI
-
The state of the developer ecosystem: PHP (JetBrains survey results)
Doctrine is my preferred ORM, being both powerful and battle-tested. There's a relatively new one lately called Cycle but I don't know anything about it other than that it's also a datamapper like Doctrine. Looks pretty decent from the docs tho.
-
Laravel isn't working for us - What Frameworks are worth taking a look at...
It uses the (H)MVC model, anti-leak DI container, DataMapper ORM (https://github.com/cycle/orm), Symfony components, and RoadRunner (https://github.com/spiral/roadrunner) as an app server (which we also created).
Slim
-
2025 Best PHP Micro Frameworks: Slim, Flight, Fat-Free, Lumen, and More!
Hey PHP fans! Welcome to 2025—a year where PHP continues to shine as the backbone of the web (sorry, haters, it’s not going anywhere!). If you’re building a slick API, a lightweight app, or just want to ditch the bloat of full-stack frameworks, micro frameworks are your ticket to coding bliss. Today, we’re diving into the top four PHP micro frameworks: Slim PHP, Flight PHP, Fat-Free Framework (F3), and Lumen—plus a few honorable mentions to keep things spicy.
-
Show HN: Dumbo – Hono inspired framework for PHP
What do you think of Slim Framework as far as best practices for modern PHP in a micro framework (which is similar to OP's Dumbo)? Are there any other micro frameworks you recommend?
https://www.slimframework.com/
-
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
What are some alternatives?
yii2-query-relation-manager - Extension for making queries for getting data from database with join-relations and filters
Lumen - The Laravel Lumen Framework.
Doctrine2 Behaviors - Doctrine2 behavior traits that help handling Blameable, Loggable, Sluggable, SoftDeletable, Uuidable, Timestampable, Translatable, Tree behavior
Bullet PHP - A resource-oriented micro PHP framework
wordpress-interop - Interoperability library to work with WordPress database in third party apps
Silex