Cycle ORM
wordpress-interop
Cycle ORM | wordpress-interop | |
---|---|---|
7 | 3 | |
1,243 | 63 | |
0.1% | - | |
7.4 | 6.0 | |
16 days ago | 8 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).
wordpress-interop
-
Corcel – Use WordPress backend with Laravel or any PHP application
There is also wordpress-interop on the doctrine side: https://github.com/williarin/wordpress-interop
-
How do i deal with wordpress if i dont want to code in its ecosystem but can code
Or alternatively - there are php packages for working directly with a wp database outside of wordpress: https://github.com/williarin/wordpress-interop, https://github.com/corcel/corcel
-
Library to work with WordPress databases from third party apps
Feedback would be appreciated. Repo link: williarin/wordpress-interop
What are some alternatives?
yii2-query-relation-manager - Extension for making queries for getting data from database with join-relations and filters
arca-orm - Low code , Zero Configuration ORM that creates models, config, database and tables on the fly.
Doctrine2 Behaviors - Doctrine2 behavior traits that help handling Blameable, Loggable, Sluggable, SoftDeletable, Uuidable, Timestampable, Translatable, Tree behavior
DoctrineJsonFunctions - Doctrine DQL functions for SQL JSON data type
Slim - Slim Framework 4 Skeleton Application
core - All of the required core code