PHP Cycle

Open-source PHP projects categorized as Cycle

PHP Cycle Projects

  1. Cycle ORM

    PHP DataMapper, ORM (by cycle)

    Project mention: Cash: A small jQuery alternative for modern browsers | news.ycombinator.com | 2024-11-02

    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) {

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. laravel-cycle-orm-adapter

    🔥 A Laravel adapter for CycleORM, providing seamless integration of the Cycle DataMapper ORM for advanced database handling and object mapping in PHP applications.

    Project mention: Laravel Config Problem: Is It Time for a Revolution? | dev.to | 2024-07-17

    I use this approach in my wayofdev/laravel-cycle-orm-adapter package. The configuration file can be viewed here: config/cycle.php

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

PHP Cycle discussion

Log in or Post with

PHP Cycle related posts

  • [Symfony] - Dynamique database connection

    1 project | /r/PHPhelp | 21 Apr 2023

Index

# Project Stars
1 Cycle ORM 1,243
2 laravel-cycle-orm-adapter 25

Sponsored
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai

Did you know that PHP is
the 14th most popular programming language
based on number of references?