mongo-php-library
Copilot instructions1.6k starsChanged 10 months agoApache-2.0View on GitHub
Trending
More talk lately.about the whole repository
Who's talking about mongodb/mongo-php-library
- DataDog/dd-trace-php“New MongoDB driver integration”GitHub · Jul 19, 2019 · 11 reactions
- doctrine/mongodb-odm“[2.0] Replace doctrine/mongodb for mongodb/mongodb and ext-mongodb”GitHub · Jan 23, 2017 · 11 reactions
- doctrine/mongodb-odm“[RFC] Plan for MongoDB ODM v3”GitHub · Apr 29, 2025 · 5 reactions
- mongodb/laravel-mongodb“Laravel 9 mongodb driver issue inside docker”GitHub · Jun 19, 2023 · 4 reactions
- mongodb/mongo-php-driver“Major slowdown since version 1.17.0”GitHub · Dec 12, 2023 · 2 reactions
The biggest 5 of 30 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 30
Talked about on GitHub (30 times).
On GitHub · 30
- Jul 19, 2019New MongoDB driver integration — DataDog/dd-trace-php11 reactions · 13 comments
- Jan 23, 2017[2.0] Replace doctrine/mongodb for mongodb/mongodb and ext-mongodb — doctrine/mongodb-odm11 reactions · 10 comments
- Apr 29, 2025[RFC] Plan for MongoDB ODM v3 — doctrine/mongodb-odm5 reactions · 6 comments
- Jun 19, 2023Laravel 9 mongodb driver issue inside docker — mongodb/laravel-mongodb4 reactions · 1 comment
- Dec 12, 2023Major slowdown since version 1.17.0 — mongodb/mongo-php-driver2 reactions · 8 comments
25 more on GitHub
- Aug 29, 2023Reformat RST for Atlas Search prose tests — mongodb/specifications1 reaction
- Nov 5, 2018[Travis] Bump ext-mongodb to 1.5.2 on Travis — symfony/symfony1 reaction · 6 comments
- Apr 11, 2018mongodb extension to 1.4.0 — laravel/homestead1 reaction · 2 comments
- Nov 11, 2016Crash on Windows with PHP7 (&7.1) — mongodb/mongo-php-driver1 reaction · 29 comments
- Oct 7, 2026PHPLIB-1939: exclude bot PRs by label in release notes — mongodb/laravel-mongodb0 reactions
- Oct 6, 2026Bump mongodb/mongodb from 2.4.2 to 2.5.0 — omnicolor/commlink0 reactions
- Oct 5, 2026Update mongodb/mongodb requirement from ^2.1 to ^2.5 — LLPhant/LLPhant0 reactions
- Oct 2, 2026Update dependency mongodb/mongodb to v2.4.2 [SECURITY] — patchlevel/odm0 reactions · 1 comment
- Sep 24, 2026build(deps): bump mongodb/mongodb from 2.3.0 to 2.4.2 — Jige06/vite-et-gourmand0 reactions
- Sep 15, 2026Bump mongodb/mongodb from 2.1.2 to 2.4.2 — banerjeesangita/guvi-web-app0 reactions
- Sep 9, 2026Update dependency mongodb/mongodb to ^1.21.4 [SECURITY] — laminas/laminas-cache-storage-adapter-ext-mongodb0 reactions
- Sep 8, 2026Update dependency mongodb/mongodb to ~2.4.1 [SECURITY] — laminas/laminas-session0 reactions
- Sep 8, 2026build(deps): bump mongodb/mongodb from 1.11.0 to 1.21.4 — BobLiu0518/BLBot0 reactions
- Sep 8, 2026Bump mongodb/mongodb from 2.1.2 to 2.4.1 — aternosorg/mclogs0 reactions · 1 comment
- Feb 13, 2026Bump mongodb/mongodb from 2.1.2 to 2.2.0 — zero-to-prod/mcp-server0 reactions
- Oct 7, 2024Bump mongodb/mongodb from 1.17.1 to 1.20.0 — EVE-KILL/Killboard0 reactions · 1 comment
- Aug 30, 2023Bump mongodb/mongodb from 1.9.0 to 1.10.0 — homebase/lib.composer0 reactions
- Aug 30, 2023Bump mongodb/mongodb from 1.8.0 to 1.16.0 — laminas-api-tools/api-tools-doctrine-querybuilder0 reactions
- Aug 30, 2023Bump mongodb/mongodb from 1.8.0 to 1.15.0 — RaspberryVision/loterioma-rng0 reactions
- Aug 30, 2023Bump mongodb/mongodb from 1.8.0 to 1.16.0 — casasoftch/api-tools-doctrine-querybuilder0 reactions
- Aug 30, 2023Bump mongodb/mongodb from 1.8.0 to 1.16.0 in /backend/src — himantyu-yuma/todo-stack0 reactions
- Aug 30, 2023chore(deps): bump mongodb/mongodb from 1.8.0 to 1.15.0 — cross-solution/YAWIK0 reactions
- Aug 30, 2023Bump mongodb/mongodb from 1.7.1 to 1.15.0 — oxechicao/underground-live-streaming0 reactions
- Aug 30, 2023Bump mongodb/mongodb from 1.4.3 to 1.16.0 — Maslosoft/ManganYii0 reactions
- Aug 30, 2023Bump mongodb/mongodb from 1.2.0 to 1.10.1 — swaplicado/siie-web0 reactions
The file
We split this copilot-instructions.md into the rules it gives an agent
12 rules. About 0 are common, 11 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
Only highlight changes or notable information that was omitted from the description
- Distinctive: line 12
Use full type declarations wherever possible
- Distinctive: line 14
Use PHPDoc blocks to supplement native types where PHP limitations exist:
- Distinctive: line 21
Ensure all public methods have complete type hints
- Very specific: line 23
Use strict scalar type declarations (declare(strict_types=1))
- Distinctive: line 24
Prefer constructor property promotion when applicable
- Distinctive: line 25
Use named arguments for better readability in complex method calls to functions inside this package
- Distinctive: line 28
Check for proper error handling patterns
- Distinctive: line 29
Ensure BSON type handling is correct
- Distinctive: line 30
Verify connection pool and client usage follows best practices
- Distinctive: line 31
Look for potential performance implications in database operations
- Distinctive: line 32
Ensure proper use of type maps and codecs
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GitHub Copilot Instructions
Code Review Guidelines
Review Focus
- Do not repeat or paraphrase the PR description
- Only highlight changes or notable information that was omitted from the description
- Focus on code quality, potential issues, and improvements not mentioned in the PR
PHP Version and Type Requirements
- The minimum PHP version supported is in
./composer.json. Code must support this version and newer - Use full type declarations wherever possible
- Leverage PHP 8.1+ features when appropriate (enums, readonly properties, intersection types, etc.)
- Use PHPDoc blocks to supplement native types where PHP limitations exist:
- Generics:
@template T,@param Collection<T>,@return T - Union types for complex scenarios
- Array shapes:
@param array{name: string, age: int} - More specific types than native PHP allows
- Generics:
Code Quality Standards
- Ensure all public methods have complete type hints
- Private/protected methods should also be fully typed
- Use strict scalar type declarations (
declare(strict_types=1)) - Prefer constructor property promotion when applicable
- Use named arguments for better readability in complex method calls to functions inside this package
MongoDB Library Specific
- Check for proper error handling patterns
- Ensure BSON type handling is correct
- Verify connection pool and client usage follows best practices
- Look for potential performance implications in database operations
- Ensure proper use of type maps and codecs
What to Flag in Reviews
- Missing type declarations that could be added
- Opportunities to use newer PHP features
- Code that might not work with the minimum PHP version requirement
- Missing PHPDoc for complex types or generics
- Inconsistent coding standards
- Potential performance or security issues not mentioned in PR description
- Breaking changes that weren't highlighted
- Documentation that needs updating due to code changes
What NOT to Comment On
- Changes that are clearly explained in the PR description
- Style preferences that are already covered by existing linting tools
- Minor formatting issues that automated tools should catch
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

