[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-8430":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":23,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":16,"starSnapshotCount":16,"syncStatus":33,"lastSyncTime":34,"discoverSource":35},8430,"DoctrineExtensions","doctrine-extensions\u002FDoctrineExtensions","doctrine-extensions","Doctrine2 behavioral extensions, Translatable, Sluggable, Tree-NestedSet, Timestampable, Loggable, Sortable","",null,"PHP",4140,1253,79,39,0,1,5,31.29,"MIT License",false,"main",true,[25,26,27,28,29],"doctrine","doctrine-odm-mongodb","doctrine-orm","nested-sets","php","2026-06-12 02:01:53","# Doctrine Behavioral Extensions\n\n[![Continuous Integration](https:\u002F\u002Fgithub.com\u002Fdoctrine-extensions\u002FDoctrineExtensions\u002Factions\u002Fworkflows\u002Fcontinuous-integration.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fdoctrine-extensions\u002FDoctrineExtensions\u002Factions\u002Fworkflows\u002Fcontinuous-integration.yml)\n[![Quality Assurance](https:\u002F\u002Fgithub.com\u002Fdoctrine-extensions\u002FDoctrineExtensions\u002Factions\u002Fworkflows\u002Fqa.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fdoctrine-extensions\u002FDoctrineExtensions\u002Factions\u002Fworkflows\u002Fqa.yml)\n[![Coding Standards](https:\u002F\u002Fgithub.com\u002Fdoctrine-extensions\u002FDoctrineExtensions\u002Factions\u002Fworkflows\u002Fcoding-standards.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fdoctrine-extensions\u002FDoctrineExtensions\u002Factions\u002Fworkflows\u002Fcoding-standards.yml)\n[![Latest Stable Version](https:\u002F\u002Fposer.pugx.org\u002Fgedmo\u002Fdoctrine-extensions\u002Fversion)](https:\u002F\u002Fpackagist.org\u002Fpackages\u002Fgedmo\u002Fdoctrine-extensions)\n\nThis package contains extensions for Doctrine ORM and MongoDB ODM that offer new functionality or tools to use Doctrine\nmore efficiently. These behaviors can be easily attached to the event system of Doctrine and handle the records being\nflushed in a behavioral way.\n\n---\n\n## Doctrine Extensions 3.0 Released :tada:\n\n3.0 focuses on refreshing this package for today's PHP. This includes:\n\n- Bumping minimum version requirements of PHP, Doctrine, and other dependencies\n- Implementing support for the latest Doctrine MongoDB & Common packages\n- Updating the test suite, add code and style standards, and other needed build tools\n- Cleaning up documentation, code, comments, etc.\n\n[Read the Upgrade Doc for more info.](\u002Fdoc\u002Fupgrading\u002Fupgrade-v2.4-to-v3.0.md)\n\n---\n\n## Installation\n\n    composer require gedmo\u002Fdoctrine-extensions\n\n* [Symfony](\u002Fdoc\u002Fframeworks\u002Fsymfony.md)\n* [Laravel](\u002Fdoc\u002Fframeworks\u002Flaravel.md)\n* [Laminas](\u002Fdoc\u002Fframeworks\u002Flaminas.md)\n\n### Upgrading\n\n* [From 2.4.x to 3.0](\u002Fdoc\u002Fupgrading\u002Fupgrade-v2.4-to-v3.0.md)\n\n## Extensions\n\n#### ORM & MongoDB ODM\n\n- [**Blameable**](\u002Fdoc\u002Fblameable.md) - updates string or reference fields on create, update and even property change with a string or object (e.g. user).\n- [**Loggable**](\u002Fdoc\u002Floggable.md) - helps tracking changes and history of objects, also supports version management.\n- [**Sluggable**](\u002Fdoc\u002Fsluggable.md) - urlizes your specified fields into single unique slug\n- [**Timestampable**](\u002Fdoc\u002Ftimestampable.md) - updates date fields on create, update and even property change.\n- [**Translatable**](\u002Fdoc\u002Ftranslatable.md) - gives you a very handy solution for translating records into different languages. Easy to setup, easier to use.\n- [**Tree**](\u002Fdoc\u002Ftree.md) - automates the tree handling process and adds some tree-specific functions on repository.\n(**closure**, **nested set** or **materialized path**)\n  _(MongoDB ODM only supports materialized path)_\n\n#### ORM Only\n\n- [**IpTraceable**](\u002Fdoc\u002Fip_traceable.md) - inherited from Timestampable, sets IP address instead of timestamp\n- [**SoftDeleteable**](\u002Fdoc\u002Fsoft-deleteable.md) - allows to implicitly remove records\n- [**Sortable**](\u002Fdoc\u002Fsortable.md) - makes any document or entity sortable\n- [**Uploadable**](\u002Fdoc\u002Fuploadable.md) - provides file upload handling in entity fields\n\n#### MongoDB ODM Only\n\n- [**References**](\u002Fdoc\u002Freferences.md) - supports linking Entities in Documents and vice versa\n- [**ReferenceIntegrity**](\u002Fdoc\u002Freference_integrity.md) - constrains ODM MongoDB Document references\n\nAll extensions support **Attribute**, **XML** and **Annotation** (deprecated) mapping. Additional mapping drivers\ncan be easily implemented using Mapping extension to handle the additional metadata mapping.\n\n### Version Compatibility\n\n* DBAL: `^3.2` (for all the extensions) or `^4.0` (for all the extensions, except **Loggable**)\n* ORM: `^2.14` or `^3.0`\n* MongoDB ODM: `^2.3`\n\nIf you are setting up the Entity Manager without a framework, see the [example](\u002Fexample\u002Fem.php) to prevent issues like #1310\n\n### XML Mapping\n\nXML mapping needs to be in a different namespace, the declared namespace for\nDoctrine extensions is http:\u002F\u002Fgediminasm.org\u002Fschemas\u002Form\u002Fdoctrine-extensions-mapping\nSo root node now looks like this:\n\n```xml\n\u003Cdoctrine-mapping xmlns=\"http:\u002F\u002Fdoctrine-project.org\u002Fschemas\u002Form\u002Fdoctrine-mapping\"\n                 xmlns:gedmo=\"http:\u002F\u002Fgediminasm.org\u002Fschemas\u002Form\u002Fdoctrine-extensions-mapping\">\n...\n\u003C\u002Fdoctrine-mapping>\n```\n\nXML mapping xsd schemas are also versioned and can be used by version suffix:\n\n- Latest version - **http:\u002F\u002Fgediminasm.org\u002Fschemas\u002Form\u002Fdoctrine-extensions-mapping**\n- 2.2.x version - **http:\u002F\u002Fgediminasm.org\u002Fschemas\u002Form\u002Fdoctrine-extensions-mapping-2-2**\n- 2.1.x version - **http:\u002F\u002Fgediminasm.org\u002Fschemas\u002Form\u002Fdoctrine-extensions-mapping-2-1**\n\n### Running Tests\n\nTo set up and run the tests, follow these steps:\n\n- Install [Docker](https:\u002F\u002Fwww.docker.com\u002F) and ensure you have `docker compose`\n- From the project root, run `docker compose up -d` to start containers in daemon mode\n- Enter the container via `docker compose exec php bash` (you are now in the root directory: `\u002Fvar\u002Fwww`)\n- Install Composer dependencies via `composer install`\n- Run the tests: `vendor\u002Fbin\u002Fphpunit`\n\n### Running the Example\n\nTo set up and run example, follow these steps:\n\n- go to the root directory of extensions\n- [download composer](https:\u002F\u002Fgetcomposer.org\u002Fdownload\u002F)\n- install dev libraries: `composer install`\n- edit `example\u002Fem.php` and configure your database on top of the file\n- run: `php example\u002Fbin\u002Fconsole` or `php example\u002Fbin\u002Fconsole` for console commands\n- run: `php example\u002Fbin\u002Fconsole orm:schema-tool:create` to create the schema\n- run: `php example\u002Fbin\u002Fconsole app:print-category-translation-tree` to run the example to print the category translation tree\n\n### Contributors\n\nThanks to [everyone participating](https:\u002F\u002Fgithub.com\u002Fdoctrine-extensions\u002FDoctrineExtensions\u002Fcontributors) in\nthe development of these great Doctrine extensions!\n\nAnd especially ones who create and maintain new extensions:\n\n- Lukas Botsch [lbotsch](https:\u002F\u002Fgithub.com\u002Flbotsch)\n- Gustavo Adrian [comfortablynumb](https:\u002F\u002Fgithub.com\u002Fcomfortablynumb)\n- Boussekeyt Jules [gordonslondon](https:\u002F\u002Fgithub.com\u002Fgordonslondon)\n- Kudryashov Konstantin [everzet](https:\u002F\u002Fgithub.com\u002Feverzet)\n- David Buchmann [dbu](https:\u002F\u002Fgithub.com\u002Fdbu)\n","DoctrineExtensions 是一个为 Doctrine ORM 和 MongoDB ODM 提供行为扩展的 PHP 库，旨在通过增加新功能或工具来提高 Doctrine 的使用效率。其核心功能包括可翻译（Translatable）、可生成唯一标识符（Sluggable）、树形嵌套集（Tree-NestedSet）、时间戳（Timestampable）、日志记录（Loggable）和可排序（Sortable）等，这些行为能够轻松地与 Doctrine 的事件系统集成，以行为方式处理记录。该项目非常适合需要增强数据模型功能的应用场景，如多语言支持、自动更新时间戳、记录历史版本以及构建复杂的数据结构等。",2,"2026-06-11 03:17:54","top_language"]