Skip to content

chore: sync upstream #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 416 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
416 commits
Select commit Hold shift + click to select a range
d422b88
Update readme to include official docs link (#2712)
bisht2050 Feb 1, 2024
b8482fa
add Laravel MongoDB v3.9 compatibility
Feb 1, 2024
5b36065
Merge branch '4.1' into DOCSP-35932-compatibility
Feb 1, 2024
0126d53
quick start updates
Feb 2, 2024
27f88e0
remove last line
Feb 2, 2024
7c1d0ab
Merge pull request #2714 from ccho-mongodb/DOCSP-35932-compatibility
Feb 2, 2024
dcf330f
shorten download and install and other fixes
Feb 2, 2024
d6397cb
tweaks
Feb 2, 2024
ffcc0a5
fixes
Feb 5, 2024
d6f7dc5
rst fixes
Feb 5, 2024
d6e9043
fixes
Feb 5, 2024
c7c93c7
reworrd intro
Feb 5, 2024
07b3c8d
grammar updates
Feb 5, 2024
63037d3
Merge branch '4.1' into DOCSP-35892-quick-start-docs
Feb 5, 2024
c913056
learning byte
Feb 5, 2024
38b94c2
formatting fixes
Feb 6, 2024
96b5a8a
PRR fixes
Feb 6, 2024
52d3136
more edits
Feb 6, 2024
da6b2b0
avoid subjunctive
Feb 6, 2024
3663a0c
PRR fixes
Feb 7, 2024
650317c
PRR fixes
Feb 7, 2024
6c5b1f7
revert .vscode change
Feb 8, 2024
e5634ac
Merge pull request #2721 from ccho-mongodb/DOCSP-35892-quick-start-docs
Feb 8, 2024
cff2773
Fix support for subqueries using the query builder (#2717)
GromNaN Feb 8, 2024
9664275
DOCSP-36572: update feedback widget title
Feb 8, 2024
c694ca4
Merge pull request #2723 from ccho-mongodb/DOCSP-36572-feedback-widge…
Feb 12, 2024
0cef5dc
PHPORM-145 Fix Query\Builder::dump and dd methods to dump MongoDB que…
GromNaN Feb 15, 2024
26a6824
PHPORM-151 Update signature of Query\Builder::dump to match parent Du…
GromNaN Feb 21, 2024
decbd99
PHPORM-152 Fix tests for Carbon 3 (#2733)
GromNaN Feb 21, 2024
5388dd0
PHPORM-140: Fix documentation for inverse embed relationships (#2734)
alcaeus Feb 21, 2024
9b72148
PHPORM-150 Run CI on Laravel 11 (#2735)
GromNaN Feb 22, 2024
b1ab9dc
Update CHANGELOG for 4.1.2
GromNaN Feb 22, 2024
aee3510
Merge branch '4.1' into 4.2
GromNaN Feb 22, 2024
223597f
Add codeowners file (#2736)
GromNaN Feb 26, 2024
a05bd53
Merge branch '4.1' into 4.2
GromNaN Feb 26, 2024
2829bbc
DOCSP-35957: Retrieve guide (#2722)
norareidy Mar 1, 2024
7af9a1a
PHPORM-143 Ensure date are read using local timezone (#2739)
GromNaN Mar 1, 2024
87741d7
PHPORM-148 Fix `null` in `datetime` fields and reset time in `date` f…
GromNaN Mar 5, 2024
d2d7845
Bump ramsey/composer-install from 2.2.0 to 3.0.0 (#2745)
dependabot[bot] Mar 5, 2024
ebaaf14
Merge branch '4.1' into 4.2
GromNaN Mar 5, 2024
eb9eb10
DOCSP-35931: Issues and Help page (#2744)
norareidy Mar 6, 2024
8a7c780
Add Laravel version to CI job name (#2749)
GromNaN Mar 6, 2024
34003dc
Merge branch '4.1' into 4.2
GromNaN Mar 6, 2024
faaeb3a
Add workflow to create merge-up pull request (#2748)
alcaeus Mar 7, 2024
cf0ea1a
Merge pull request #2754 from mongodb/merge-4.1-into-4.2-1709803162085
alcaeus Mar 7, 2024
963d01f
Test Laravel 10 and 11 (#2746)
GromNaN Mar 7, 2024
19fc801
PHPORM-139 Implement `Model::createOrFirst()` using `findOneAndUpdate…
GromNaN Mar 11, 2024
74899f9
Fix CS (#2765)
GromNaN Mar 12, 2024
92efdda
Merge branch '4.2' into merge-4.1-into-4.2-1710254470287
alcaeus Mar 13, 2024
411735a
Merge pull request #2766 from mongodb/merge-4.1-into-4.2-1710254470287
alcaeus Mar 13, 2024
c8fb0a0
PHPORM-159 Add tests on `whereAny` and `whereAll` (#2763)
GromNaN Mar 13, 2024
f5f86c8
PHPORM-139 Improve `Model::createOrFirst()` tests and error checking …
GromNaN Mar 13, 2024
09580b3
DOCSP-35933: Upgrade version guide (#2755)
norareidy Mar 13, 2024
0a425e1
DOCSP-37601 course and release notes (#2764)
Mar 13, 2024
e915378
Use bot access token for merge-up pull requests (#2772)
alcaeus Mar 14, 2024
13a1127
Merge pull request #2773 from mongodb/merge-4.1-into-4.2-1710408389604
GromNaN Mar 14, 2024
fcdad94
DOCSP-37710: v4.2 updates (#2774)
Mar 14, 2024
df90ab3
Merge 4.2 into 4.3 (#2777)
GromNaN Mar 15, 2024
b55393c
Set distinct version for error (#2779)
GromNaN Mar 15, 2024
a5ebe88
Merge 4.2 into 4.3 (#2780)
GromNaN Mar 15, 2024
e182c90
Update changelog for 4.2.0 (#2784)
GromNaN Mar 19, 2024
00018fb
Merge 4.2 into 4.3 (#2787)
GromNaN Mar 19, 2024
d4a9818
DOCSP-37057 eloquent schema builder (#2776)
Mar 25, 2024
434d1b8
DOCSP-35964 eloquent models standardization (#2726)
Mar 25, 2024
2117c2c
DOCSP-37056 eloquent relationships (#2747)
Mar 25, 2024
260620e
Add tests to doc examples (#2775)
GromNaN Mar 26, 2024
fdfb5e5
PHPORM-155 Fluent aggregation builder (#2738)
GromNaN Mar 26, 2024
c6b683e
Merge 4.1 into 4.2 (#2794)
GromNaN Mar 27, 2024
f2d2820
PHPORM-162 Drop support for Composer 1.x (#2785)
GromNaN Mar 27, 2024
586a420
DOCSP-37057 eloquent schema builder (#2776)
Mar 25, 2024
76c7f4e
DOCSP-35964 eloquent models standardization (#2726)
Mar 25, 2024
642bd22
DOCSP-37056 eloquent relationships (#2747)
Mar 25, 2024
90ebf12
Add tests to doc examples (#2775)
GromNaN Mar 26, 2024
c9b9d2c
Merge 4.2 into 4.3 (#2800)
jmikola Mar 27, 2024
860dfaf
PHPORM-160 Run doc tests (#2795)
GromNaN Apr 2, 2024
9a616f9
DOCSP-37618: Usage Examples landing page (#2767)
norareidy Apr 3, 2024
8eb9271
DOCSP-35974: Update one usage example (#2781)
norareidy Apr 3, 2024
e338fc2
DOCSP-38076 quickstart updates for 11 (#2799)
Apr 3, 2024
d4e5e2b
DOCSP-36631: laravel feature compatibility (#2802)
rustagir Apr 3, 2024
0b97b2a
Merge branch '4.2' into merge-4.1-into-4.2-1712161920986
GromNaN Apr 4, 2024
295d129
Merge 4.1 into 4.2 (#2820)
GromNaN Apr 4, 2024
e77a474
DOCSP-35970: Find one usage example (#2768)
norareidy Apr 4, 2024
e959925
040124: Code example syntax fix for Eloquent Model Class page (#2809)
Apr 4, 2024
8b76a8c
Merge branch '4.2' into merge-4.1-into-4.2-1712241694095
GromNaN Apr 5, 2024
6071a5e
Merge 4.1 into 4.2 (#2824)
GromNaN Apr 5, 2024
2074da3
chore: fix typos in comment (#2806)
stayweek Apr 5, 2024
2b0b5e6
DOCSP-35966 query builder (#2790)
Apr 8, 2024
e82fe60
Merge branch '4.2' into merge-4.1-into-4.2-1712583963596
GromNaN Apr 8, 2024
90274b8
Merge 4.1 into 4.2 (#2831)
GromNaN Apr 8, 2024
10f44bf
DOCSP-35976: Delete One usage example (#2821)
norareidy Apr 8, 2024
d51a3a1
Merge 4.1 into 4.2 (#2834)
GromNaN Apr 9, 2024
52a4eab
Merge branch '4.3' into merge-4.2-into-4.3-1712671033107
GromNaN Apr 9, 2024
4bdefd1
Merge 4.2 into 4.3 (#2835)
GromNaN Apr 9, 2024
d0e6fb4
Fix and test MongoDB failed queue provider
GromNaN Apr 9, 2024
d3eb235
Add docs team as code owner (#2840)
alcaeus Apr 10, 2024
c114e00
Merge 4.1 into 4.2 (#2841)
alcaeus Apr 10, 2024
523e409
Merge 4.2 into 4.3 (#2842)
alcaeus Apr 10, 2024
c4a0305
Enable auto-merge in merge-up pull requests (#2843)
alcaeus Apr 10, 2024
3c3b2bd
Merge 4.1 into 4.2 (#2844)
mongodb-php-bot Apr 10, 2024
95c5b4f
Merge 4.2 into 4.3 (#2845)
mongodb-php-bot Apr 10, 2024
9fbe1ef
Update src/Queue/Failed/MongoFailedJobProvider.php
GromNaN Apr 15, 2024
79df465
DOCSP-35968: Transactions docs (#2847)
Apr 15, 2024
0e2ab47
Merge 4.1 into 4.2 (#2854)
mongodb-php-bot Apr 15, 2024
61368ef
Update phpdoc
GromNaN Apr 15, 2024
5d6d2bd
Merge 4.2 into 4.3 (#2855)
mongodb-php-bot Apr 15, 2024
bd6aa40
PHPORM-167 Fix and test MongoDB failed queue provider (#2838)
GromNaN Apr 15, 2024
274b1c2
4.1 Write Operations (#2857)
Apr 15, 2024
d87f146
Merge branch '4.2' into merge-4.1-into-4.2-1713203527785
Apr 15, 2024
cc69e8c
Merge 4.1 into 4.2 (#2858)
mongodb-php-bot Apr 15, 2024
a9413a1
Merge 4.2 into 4.3 (#2859)
mongodb-php-bot Apr 15, 2024
6cd08a1
DOCSP-35973: Delete Many usage example (#2837)
norareidy Apr 15, 2024
9a16fce
Merge 4.1 into 4.2 (#2860)
mongodb-php-bot Apr 15, 2024
5df1bed
Merge 4.2 into 4.3 (#2861)
mongodb-php-bot Apr 15, 2024
93727cd
DOCSP-35934: databases and collections (#2816)
rustagir Apr 15, 2024
6e5e49f
Add toc changes for db and coll docs (#2863)
rustagir Apr 15, 2024
b1847ba
Merge 4.1 into 4.2 (#2862)
mongodb-php-bot Apr 15, 2024
24f6283
Merge 4.1 into 4.2 (#2864)
mongodb-php-bot Apr 15, 2024
953eb94
Merge 4.2 into 4.3 (#2866)
mongodb-php-bot Apr 15, 2024
00d3931
DOCSP-35982: Count usage example (#2850)
norareidy Apr 16, 2024
524d159
Merge 4.1 into 4.2 (#2869)
mongodb-php-bot Apr 16, 2024
c3ac461
Merge 4.2 into 4.3 (#2870)
mongodb-php-bot Apr 16, 2024
1a6b596
DOCSP-35972: Distinct values usage example (#2846)
norareidy Apr 16, 2024
87aaade
Merge 4.1 into 4.2 (#2871)
mongodb-php-bot Apr 16, 2024
af05600
Merge 4.2 into 4.3 (#2872)
mongodb-php-bot Apr 16, 2024
2f929dd
DOCSP-35978: Insert multiple usage example (#2849)
norareidy Apr 16, 2024
b1ef93d
Merge 4.1 into 4.2 (#2873)
mongodb-php-bot Apr 16, 2024
e955aaf
Merge 4.2 into 4.3 (#2874)
mongodb-php-bot Apr 16, 2024
f83541d
DOCSP-35954: cleanup (#2878)
rustagir Apr 18, 2024
8bc235c
DOCSP-35937 aggregations builder 4.3 (#2876)
Apr 18, 2024
01dd49f
DOCSP-35980: Insert One usage example (#2826)
norareidy Apr 18, 2024
26d9632
DOCSP-35975: Update many usage example (#2836)
norareidy Apr 19, 2024
839b411
DOCSP-35983: Run command usage example (#2852)
norareidy Apr 19, 2024
d40b935
Merge 4.1 into 4.2 (#2884)
mongodb-php-bot Apr 19, 2024
8355c30
Merge 4.2 into 4.3 (#2885)
mongodb-php-bot Apr 19, 2024
21c9ca4
DOCSP-35962: sorts (#2879)
rustagir Apr 19, 2024
0d68370
Merge 4.1 into 4.2 (#2886)
mongodb-php-bot Apr 19, 2024
6b9511f
Merge 4.2 into 4.3 (#2887)
mongodb-php-bot Apr 19, 2024
d0978a8
PHPORM-99 Implement optimized lock and cache (#2877)
GromNaN Apr 22, 2024
19bb87f
DOCSP-35938: Connection Guide docs (#2881)
Apr 22, 2024
eea4950
DOCSP-35941 connection options (#2892)
Apr 22, 2024
a9042f4
Merge 4.1 into 4.2 (#2895)
mongodb-php-bot Apr 22, 2024
06904fc
Merge branch '4.3' into merge-4.2-into-4.3-1713808086851
Apr 22, 2024
9961bfd
Merge 4.2 into 4.3 (#2896)
mongodb-php-bot Apr 22, 2024
0f8474e
DOCSP-35959: search text (#2889)
rustagir Apr 22, 2024
10b48dd
Merge 4.1 into 4.2 (#2897)
mongodb-php-bot Apr 22, 2024
d6f372d
Merge 4.2 into 4.3 (#2898)
mongodb-php-bot Apr 22, 2024
6ac2b6a
DOCSP-35977: Find multiple usage example (#2833)
norareidy Apr 22, 2024
8f7bf77
Merge 4.1 into 4.2 (#2899)
mongodb-php-bot Apr 22, 2024
eaa4de9
Merge 4.2 into 4.3 (#2900)
mongodb-php-bot Apr 22, 2024
3de2876
PHPORM-99 Enable TTL index to auto-purge of expired cache and lock it…
GromNaN Apr 23, 2024
6c5dff2
DOCSP-36792: Add default database connection admonition (#2888)
norareidy Apr 24, 2024
7172a24
Merge 4.1 into 4.2 (#2907)
mongodb-php-bot Apr 24, 2024
91c3a37
Merge 4.2 into 4.3 (#2908)
mongodb-php-bot Apr 24, 2024
28fddb9
PHPORM-164 Run tests with PHP 8.4 (#2830)
GromNaN Apr 24, 2024
0051491
Merge 4.2 into 4.3 (#2910)
mongodb-php-bot Apr 24, 2024
da27552
PHPORM-171 Set timestamps when using createOrFirst (#2905)
GromNaN Apr 25, 2024
a72d181
Merge 4.2 into 4.3 (#2911)
mongodb-php-bot Apr 25, 2024
3750253
Update changelog (#2912)
GromNaN Apr 25, 2024
0d9198d
Merge branch '4.3' into merge-4.2-into-4.3-1714043118815
GromNaN Apr 25, 2024
3130557
Merge 4.2 into 4.3 (#2914)
mongodb-php-bot Apr 25, 2024
6dfa13f
PHPORM-172 Add test on updateOrCreate (#2906)
GromNaN Apr 25, 2024
7654b17
Add return type void in FindAndModifyCommandSubscriber to prevent dep…
wivaku Apr 25, 2024
9318682
Merge branch '4.3' into merge-4.2-into-4.3-1714053945137
GromNaN Apr 25, 2024
f95eb66
Merge 4.2 into 4.3 (#2915)
mongodb-php-bot Apr 25, 2024
64d6dc0
PHPORM-174 Add doc for cache and locks (#2909)
GromNaN Apr 26, 2024
3bc0c4a
DOCSP-38344: docs cleanup (#2902)
ccho-mongodb Apr 26, 2024
cc667c3
Merge branch '4.2' into merge-4.1-into-4.2-1714153363009
norareidy Apr 26, 2024
4abdb8a
Merge 4.1 into 4.2 (#2917)
mongodb-php-bot Apr 26, 2024
d98cd42
Merge 4.2 into 4.3 (#2918)
mongodb-php-bot Apr 26, 2024
ffecbdc
DOCSP-37112: Casts() method info (#2901)
norareidy Apr 26, 2024
cec349a
Merge 4.2 into 4.3 (#2919)
mongodb-php-bot Apr 26, 2024
294f103
DOCSP-39058: 4.3 release updates (#2916)
norareidy Apr 29, 2024
ec0d30f
DOCSP-39154: Fix Schema Builder typo (#2924)
norareidy May 1, 2024
6dcf5ea
DOCSP-35939: TLS docs (#2894)
rustagir May 1, 2024
df75d8a
Merge 4.1 into 4.2 (#2926)
mongodb-php-bot May 1, 2024
afaa773
Merge 4.2 into 4.3 (#2927)
mongodb-php-bot May 1, 2024
f93aaa7
Fallback to jenssegers/mongodb package name when mongodb/laravel-mong…
GromNaN May 2, 2024
7836cad
PHPORM-82 Support prefix for collection names (#2930)
GromNaN May 6, 2024
d1802d1
DOCSP-37770: Return results as JSON (#2921)
norareidy May 6, 2024
adf5566
Merge 4.1 into 4.2 (#2932)
mongodb-php-bot May 6, 2024
82d9993
Merge 4.2 into 4.3 (#2933)
mongodb-php-bot May 6, 2024
e743d1e
Merge 4.3 into 4.4 (#2934)
mongodb-php-bot May 6, 2024
db830f8
typo fix
mongoKart May 8, 2024
72b6d05
DOCSP-39288 - Typo fix (#2938)
mongoKart May 8, 2024
1e80e80
Merge 4.3 into 4.4 (#2939)
mongodb-php-bot May 8, 2024
ed0a122
DOCSP-36722: v4.0 minimum version (#2940)
norareidy May 9, 2024
9f5b34d
Merge branch '4.2' into merge-4.1-into-4.2-1715275935784
norareidy May 9, 2024
fb8359a
Merge 4.1 into 4.2 (#2941)
mongodb-php-bot May 9, 2024
6eb1a0f
Merge 4.2 into 4.3 (#2942)
mongodb-php-bot May 9, 2024
425d570
Merge 4.3 into 4.4 (#2943)
mongodb-php-bot May 9, 2024
773e65f
PHPORM-181: Add SBOM lite (#2937)
alcaeus May 10, 2024
b892bb0
Merge 4.3 into 4.4 (#2944)
mongodb-php-bot May 10, 2024
d103849
Revert "DOCSP-36722: v4.0 minimum version (#2940)" (#2947)
norareidy May 20, 2024
cb953fb
Merge branch '4.2' into merge-4.1-into-4.2-1716209338791
GromNaN May 20, 2024
0c5946b
Merge 4.1 into 4.2 (#2958)
mongodb-php-bot May 21, 2024
e8a8902
Merge 4.2 into 4.3 (#2960)
mongodb-php-bot May 21, 2024
b040bef
PHPORM-81 implement `mongodb` driver for batch (#2904)
GromNaN May 21, 2024
8dcb1a0
Merge 4.3 into 4.4 (#2961)
mongodb-php-bot May 21, 2024
a7aecf8
PHPORM-184 Use fixed key for temporary setting nested field (#2962)
GromNaN May 21, 2024
3db44cd
Merge branch '4.4' into merge-4.3-into-4.4-1716324718461
GromNaN May 21, 2024
cb84a43
Merge 4.3 into 4.4 (#2963)
mongodb-php-bot May 21, 2024
bb8977f
Add SARIF output formatter for PHPStan (#2965)
alcaeus May 22, 2024
75b7e7f
Merge 4.3 into 4.4 (#2966)
mongodb-php-bot May 22, 2024
6353520
Prevent Undefined property: MongoDB\Laravel\Connection::$connection (…
SanderMuller May 22, 2024
f469634
Merge 4.3 into 4.4 (#2968)
mongodb-php-bot May 22, 2024
390c9ec
Customize generated release notes (#2971)
GromNaN May 23, 2024
1c58c02
Merge 4.3 into 4.4 (#2973)
mongodb-php-bot May 23, 2024
d685b6a
PHPORM-153: Add automated release workflow (#2964)
alcaeus May 23, 2024
8979ed9
Merge 4.3 into 4.4 (#2974)
mongodb-php-bot May 23, 2024
7545177
Automatically label docs PR (#2972)
GromNaN May 23, 2024
7b8f0a1
Improve error message for invalid configuration (#2975)
GromNaN May 23, 2024
7e72c2c
Merge 4.3 into 4.4 (#2978)
mongodb-php-bot May 23, 2024
7dc263e
Remove @mixin on Model class (#2981)
GromNaN May 28, 2024
a017a0a
Merge 4.3 into 4.4 (#2983)
mongodb-php-bot May 28, 2024
3f84373
Unset `_id: null` to let it be autogenerated (#2969)
GromNaN May 28, 2024
55ca36e
PHPORM-180 Keep createOrFirst in 2 commands to simplify implementatio…
GromNaN May 30, 2024
3c8a3fb
Update changelog for 4.3.1 (#2987)
GromNaN May 31, 2024
efe1a89
Update changelog for 4.4.0 (#2988)
GromNaN May 31, 2024
3810adb
Merge branch '4.4' into merge-4.3-into-4.4-1717138896794
GromNaN May 31, 2024
57b76b4
Merge 4.3 into 4.4 (#2989)
mongodb-php-bot May 31, 2024
c9d19ad
Update RELEASING.md (#2990)
GromNaN Jun 4, 2024
0f64e67
Merge 4.4 into 4.5 (#2992)
mongodb-php-bot Jun 4, 2024
847e3c7
PHPORM-186 GridFS adapter for Filesystem (#2985)
GromNaN Jun 4, 2024
2daa0ea
v4.4 compat table (#2995)
norareidy Jun 4, 2024
8bbc663
Merge 4.4 into 4.5 (#2996)
mongodb-php-bot Jun 4, 2024
8b9ae5c
PHPORM-186 Review of GridFS docs (#2993)
GromNaN Jun 4, 2024
798a5ba
PHPORM-190: Update drivers-github-tools to v2 (#2998)
alcaeus Jun 7, 2024
d66f46b
Merge 4.4 into 4.5 (#2999)
mongodb-php-bot Jun 7, 2024
83a07d1
v4.5 compat table (#2997)
GromNaN Jun 11, 2024
42f5a49
PHPORM-185, PHPORM-191, PHPORM-192: Publish SSDLC assets on release (…
alcaeus Jun 13, 2024
88de735
Merge 4.4 into 4.5 (#3005)
mongodb-php-bot Jun 13, 2024
4940d80
Upload code scanning results to correct ref when releasing (#3006)
alcaeus Jun 17, 2024
e79b0ae
Merge 4.4 into 4.5 (#3007)
mongodb-php-bot Jun 17, 2024
3415f86
Use full-report convenience action for SSDLC reports (#3010)
alcaeus Jun 20, 2024
e383220
Merge 4.4 into 4.5 (#3012)
mongodb-php-bot Jun 20, 2024
512c610
DOCSP-39849: revise job batching docs (#2994)
rustagir Jun 20, 2024
0b1ec34
Merge 4.4 into 4.5 (#3013)
mongodb-php-bot Jun 20, 2024
d82ab46
Add link to filesystems docs (#3009)
GromNaN Jun 20, 2024
8333880
PHPORM-175: Use foreign key name for MorphTo relationships (#3011)
jmikola Jun 20, 2024
0a143cc
DOCSP-41010: Fix transactions code example (#3016)
norareidy Jun 28, 2024
97aafc7
Merge 4.1 into 4.2 (#3017)
mongodb-php-bot Jun 28, 2024
f6bb2ff
Merge 4.2 into 4.3 (#3018)
mongodb-php-bot Jun 28, 2024
7a5f587
Merge 4.3 into 4.4 (#3019)
mongodb-php-bot Jun 28, 2024
ffacc6b
DOCSP-41010: Fix transactions code example (#3016) (#3020)
mongodb-php-bot Jun 28, 2024
cb3fa4e
DOCSP-38380: array reads (#3028)
rustagir Jul 8, 2024
bf4e35d
Merge 4.1 into 4.2 (#3029)
mongodb-php-bot Jul 8, 2024
7e504a3
Merge 4.2 into 4.3 (#3030)
mongodb-php-bot Jul 8, 2024
0f697e1
Merge 4.3 into 4.4 (#3031)
mongodb-php-bot Jul 8, 2024
2f7bf84
Merge 4.4 into 4.5 (#3032)
mongodb-php-bot Jul 8, 2024
7df42cd
DOCSP-38100: User authentication (#3034)
norareidy Jul 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .codacy.yml

This file was deleted.

5 changes: 4 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
trim_trailing_whitespace = true

[*.yml]
indent_size = 2
15 changes: 12 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/tests export-ignore
/.* export-ignore
/phpunit.xml.dist export-ignore
/.github export-ignore
/.phpunit.cache export-ignore
/docs export-ignore
/tests export-ignore
*.md export-ignore
*.dist export-ignore
.editorconfig export-ignore
.gitattributes export-ignore
.gitignore export-ignore
docker-compose.yml export-ignore
Dockerfile export-ignore
phpstan-baseline.neon export-ignore
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* @mongodb/dbx-php
/docs @mongodb/docs-drivers-team
2 changes: 0 additions & 2 deletions .github/FUNDING.yml

This file was deleted.

12 changes: 12 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
blank_issues_enabled: false

contact_links:
- name: Discussions
url: https://github.com/mongodb/laravel-mongodb/discussions/new/choose
about: For questions, discussions, or general technical support from other Laravel users, visit the Discussions page.
- name: MongoDB Developer Community Forums
url: https://developer.mongodb.com/community/forums/
about: For questions, discussions, or general technical support, visit the MongoDB Community Forums. The MongoDB Community Forums are a centralized place to connect with other MongoDB users, ask questions, and get answers.
- name: Report a Security Vulnerability
url: https://mongodb.com/docs/manual/tutorial/create-a-vulnerability-report
about: If you believe you have discovered a vulnerability in MongoDB products or have experienced a security incident related to MongoDB products, please report the issue to aid in its resolution.
10 changes: 10 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!--
Replace this notice by a description of your feature/bugfix.
This will help reviewers and should be a good start for the documentation.
-->

### Checklist

- [ ] Add tests and ensure they pass
- [ ] Add an entry to the CHANGELOG.md file
- [ ] Update documentation for new features
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
7 changes: 7 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# https://github.com/actions/labeler
docs:
- changed-files:
- any-glob-to-any-file: 'docs/**'
github:
- changed-files:
- any-glob-to-any-file: '.github/**'
21 changes: 21 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
changelog:
exclude:
labels:
- ignore-for-release
- minor
authors:
- mongodb-php-bot
categories:
- title: Breaking Changes 🛠
labels:
- breaking-change
- title: New Features
labels:
- enhancement
- title: Fixed
labels:
- bug
- fixed
- title: Other Changes
labels:
- "*"
155 changes: 77 additions & 78 deletions .github/workflows/build-ci.yml
Original file line number Diff line number Diff line change
@@ -1,97 +1,96 @@
name: CI
name: "CI"

on:
push:
branches:
tags:
pull_request:

jobs:
php-cs-fixer:
runs-on: ubuntu-latest
env:
PHP_CS_FIXER_VERSION: v3.6.0
strategy:
matrix:
php:
- '8.0'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl,mbstring
tools: php-cs-fixer:${{ env.PHP_CS_FIXER_VERSION }}
coverage: none
- name: Run PHP-CS-Fixer Fix, version ${{ env.PHP_CS_FIXER_VERSION }}
run: php-cs-fixer fix --dry-run --diff --ansi

build:
runs-on: ${{ matrix.os }}
name: PHP v${{ matrix.php }} with Mongo v${{ matrix.mongodb }}
continue-on-error: ${{ matrix.experimental }}
runs-on: "${{ matrix.os }}"

name: "PHP ${{ matrix.php }} Laravel ${{ matrix.laravel }} MongoDB ${{ matrix.mongodb }} ${{ matrix.mode }}"

strategy:
matrix:
os:
- "ubuntu-latest"
mongodb:
- "4.4"
- "5.0"
- "6.0"
- "7.0"
php:
- "8.1"
- "8.2"
- "8.3"
laravel:
- "10.*"
- "11.*"
include:
- { os: ubuntu-latest, php: 8.0, mongodb: '4.0', experimental: false }
- { os: ubuntu-latest, php: 8.0, mongodb: 4.2, experimental: false }
- { os: ubuntu-latest, php: 8.0, mongodb: 4.4, experimental: false }
- { os: ubuntu-latest, php: 8.0, mongodb: '5.0', experimental: false }
- { os: ubuntu-latest, php: 8.1, mongodb: '4.0', experimental: false }
- { os: ubuntu-latest, php: 8.1, mongodb: 4.2, experimental: false }
- { os: ubuntu-latest, php: 8.1, mongodb: 4.4, experimental: false }
- { os: ubuntu-latest, php: 8.1, mongodb: '5.0', experimental: false }
services:
mongo:
image: mongo:${{ matrix.mongodb }}
ports:
- 27017:27017
mysql:
image: mysql:5.7
ports:
- 3307:3306
env:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
MYSQL_DATABASE: 'unittest'
MYSQL_ROOT_PASSWORD:
- php: "8.1"
laravel: "10.*"
mongodb: "5.0"
mode: "low-deps"
os: "ubuntu-latest"
- php: "8.4"
laravel: "11.*"
mongodb: "7.0"
mode: "ignore-php-req"
os: "ubuntu-latest"
exclude:
- php: "8.1"
laravel: "11.*"

steps:
- uses: actions/checkout@v2
- uses: "actions/checkout@v4"

- name: "Create MongoDB Replica Set"
run: |
docker run --name mongodb -p 27017:27017 -e MONGO_INITDB_DATABASE=unittest --detach mongo:${{ matrix.mongodb }} mongod --replSet rs --setParameter transactionLifetimeLimitSeconds=5

if [ "${{ matrix.mongodb }}" = "4.4" ]; then MONGOSH_BIN="mongo"; else MONGOSH_BIN="mongosh"; fi
until docker exec --tty mongodb $MONGOSH_BIN 127.0.0.1:27017 --eval "db.runCommand({ ping: 1 })"; do
sleep 1
done
sudo docker exec --tty mongodb $MONGOSH_BIN 127.0.0.1:27017 --eval "rs.initiate({\"_id\":\"rs\",\"members\":[{\"_id\":0,\"host\":\"127.0.0.1:27017\" }]})"

- name: "Show MongoDB server status"
run: |
if [ "${{ matrix.mongodb }}" = "4.4" ]; then MONGOSH_BIN="mongo"; else MONGOSH_BIN="mongosh"; fi
docker exec --tty mongodb $MONGOSH_BIN 127.0.0.1:27017 --eval "db.runCommand({ serverStatus: 1 })"

- name: "Installing php"
uses: shivammathur/setup-php@v2
uses: "shivammathur/setup-php@v2"
with:
php-version: ${{ matrix.php }}
extensions: curl,mbstring,xdebug
coverage: xdebug
tools: composer
- name: Show PHP version
run: php -v && composer -V
- name: Show Docker version
run: if [[ "$DEBUG" == "true" ]]; then docker version && env; fi
env:
DEBUG: ${{secrets.DEBUG}}
- name: Download Composer cache dependencies from cache
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache Composer dependencies
uses: actions/cache@v1
extensions: "curl,mbstring,xdebug"
coverage: "xdebug"
tools: "composer"

- name: "Show Docker version"
if: ${{ runner.debug }}
run: "docker version && env"

- name: "Restrict Laravel version"
run: "composer require --dev --no-update 'laravel/framework:${{ matrix.laravel }}'"

- name: "Download Composer cache dependencies from cache"
id: "composer-cache"
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: "Cache Composer dependencies"
uses: "actions/cache@v4"
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ matrix.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ matrix.os }}-composer-
- name: Install dependencies
run: |
composer install --no-interaction
- name: Run tests
key: "${{ matrix.os }}-composer-${{ hashFiles('**/composer.json') }}"
restore-keys: "${{ matrix.os }}-composer-"

- name: "Install dependencies"
run: |
./vendor/bin/phpunit --coverage-clover coverage.xml
composer update --no-interaction \
$([[ "${{ matrix.mode }}" == low-deps ]] && echo ' --prefer-lowest') \
$([[ "${{ matrix.mode }}" == ignore-php-req ]] && echo ' --ignore-platform-req=php+')
- name: "Run tests"
run: "./vendor/bin/phpunit --coverage-clover coverage.xml"
env:
MONGO_HOST: 0.0.0.0
MYSQL_HOST: 0.0.0.0
MYSQL_PORT: 3307
- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
MONGODB_URI: 'mongodb://127.0.0.1/?replicaSet=rs'
69 changes: 69 additions & 0 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: "Coding Standards"

on:
push:
pull_request:

env:
PHP_VERSION: "8.2"
DRIVER_VERSION: "stable"

jobs:
phpcs:
name: "phpcs"
runs-on: "ubuntu-22.04"

permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write

steps:
- name: "Checkout"
uses: "actions/checkout@v4"

- name: "Setup cache environment"
id: "extcache"
uses: "shivammathur/cache-extensions@v1"
with:
php-version: ${{ env.PHP_VERSION }}
extensions: "mongodb-${{ env.DRIVER_VERSION }}"
key: "extcache-v1"

- name: "Cache extensions"
uses: "actions/cache@v4"
with:
path: ${{ steps.extcache.outputs.dir }}
key: ${{ steps.extcache.outputs.key }}
restore-keys: ${{ steps.extcache.outputs.key }}

- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
extensions: "mongodb-${{ env.DRIVER_VERSION }}"
php-version: ${{ env.PHP_VERSION }}
tools: "cs2pr"

- name: "Show driver information"
run: "php --ri mongodb"

- name: "Install dependencies with Composer"
uses: "ramsey/[email protected]"
with:
composer-options: "--no-suggest"

- name: "Format the code"
continue-on-error: true
run: |
mkdir .cache
./vendor/bin/phpcbf

# The -q option is required until phpcs v4 is released
- name: "Run PHP_CodeSniffer"
run: "vendor/bin/phpcs -q --no-colors --report=checkstyle | cs2pr"

- name: "Commit the changes"
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "apply phpcbf formatting"
12 changes: 12 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: "Pull Request Labeler"
on:
- pull_request_target

jobs:
labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
31 changes: 31 additions & 0 deletions .github/workflows/merge-up.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Merge up

on:
push:
branches:
- "[0-9]+.[0-9]+"

env:
GH_TOKEN: ${{ secrets.MERGE_UP_TOKEN }}

jobs:
merge-up:
name: Create merge up pull request
runs-on: ubuntu-latest

steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
with:
# fetch-depth 0 is required to fetch all branches, not just the branch being built
fetch-depth: 0
token: ${{ secrets.MERGE_UP_TOKEN }}

- name: Create pull request
id: create-pull-request
uses: alcaeus/automatic-merge-up-action@main
with:
ref: ${{ github.ref_name }}
branchNamePattern: '<major>.<minor>'
enableAutoMerge: true
Loading