The largest PHP repositories by lines of code

OctoCounts has measured 114 public GitHub repositories whose primary programming language is PHP. ccxt/ccxt is the largest, with 4,217,786 code lines across 6,505 files, counted with tokei on November 24, 2026. The table ranks the 50 largest by code lines; each row links to a report pinned to the commit it counted.

RankRepositoryCode linesTotal linesFilesPHP share
1ccxt/ccxt4,217,7866,736,0116,50516.9%
2moodle/moodle4,128,9508,547,51159,35478.3%
3magento/magento22,160,3993,433,26332,42667.1%
4wikimedia/mediawiki1,949,4412,357,6809,89524.8%
5Dolibarr/dolibarr1,537,3052,264,5396,37476.7%
6ChurchCRM/CRM1,296,1322,024,5632,7099.8%
7oroinc/orocommerce1,271,7281,609,38115,86570.4%
8revive-adserver/revive-adserver1,118,8251,475,2703,83334.2%
9nextcloud/server1,023,6491,277,6029,84230.8%
10symfony/symfony949,7601,168,7196,59497.6%
11WordPress/WordPress799,1141,245,8774,04847.7%
12Connum/hanzivg765,654969,03011,7750.1%
13SuiteCRM/SuiteCRM727,1211,100,3966,54359.9%
14matomo-org/matomo636,220823,9038,49143.3%
15espocrm/espocrm556,477809,0319,47132.1%
16aureuserp/aureuserp536,450635,61211,08381.4%
17OpenMage/magento-lts479,751781,7584,83970.1%
18bagisto/bagisto461,417564,8182,96066.1%
19appwrite/appwrite440,188552,3853,09891.2%
20coollabsio/coolify430,438542,9343,36452.9%
21drupal/drupal416,073791,5867,77569.3%
22Leantime/leantime403,134516,0871,61919.7%
23joomla/joomla-cms378,402642,1145,09563.6%
24akaunting/akaunting370,429438,4303,99345.5%
25crmeb/CRMEB324,812443,6984,05442.4%
26Mes-Open/OpenMes283,170353,7272,53033.2%
27LibreSign/libresign265,873302,2001,19721.5%
28humhub/humhub254,442346,7535,89988.0%
29phpbb/phpbb245,561356,3981,83084.1%
30Panelica/pnlcs217,527266,5821,66181.9%
31SolidInvoice/SolidInvoice203,555291,1442,66060.0%
32swoole/typephp174,400220,8812,09480.6%
33FOSSBilling/FOSSBilling145,771197,8441,29863.6%
34laravel/framework136,115286,0661,86195.6%
35ad-aures/castopod133,123168,6622,18783.6%
36kanboard/kanboard130,181184,4291,33294.1%
37OpenVK/openvk128,041150,53052035.4%
38liberusoftware/project-crm-laravel-filament122,631164,3765,90279.7%
39PointOfSalesSystem/opensourcepos120,492133,5691,38083.0%
40projectsend/legacy113,972145,25765344.7%
41Chipsoreo/LARKA_GMAO110,669143,09326140.2%
42monicahq/monica108,511130,9621,47756.1%
43oroinc/crm108,398142,2831,84069.3%
44venturedrake/laravel-crm97,088132,0231,64562.4%
45pmmp/PocketMine-MP90,562170,1431,66090.8%
46patrikjuniyor/flavor-restaurant86,631120,99649543.4%
47Seizmann/PipraPay69,90884,90114665.7%
48PipraPay/PipraPay69,83384,67014265.8%
49Billmora/billmora66,32885,31787453.6%
50XiaoFeng-QWQ/XQFGameHub63,91079,93115441.2%

Ranking rule: a repository belongs to PHP when PHP is its largest programming language by code lines; data and prose formats such as JSON, YAML, TOML and Markdown do not count as a language for this rule. "PHP share" is the share of the repository's code lines written in PHP. Code lines exclude comments and blank lines. Every report uses OctoCounts' canonical public options, with tests, docs and generated directories excluded, and reports were generated on different dates.

PHP leaderboard FAQ

Which PHP repository has the most lines of code?

ccxt/ccxt is the largest PHP repository in OctoCounts' index, with 4,217,786 code lines out of 6,736,011 total lines across 6,505 files, counted on November 24, 2026. moodle/moodle follows with 4,128,950 code lines. Code size is not code quality: a larger count only means more source material.

How does a repository join the PHP leaderboard?

PHP must be its primary programming language: the language with the most code lines in the repository's OctoCounts report, ignoring data and prose formats such as JSON, YAML, TOML and Markdown. The repository then needs a public report with at least 5 files, and it is listed when it is among the 50 largest by code lines.

How many PHP repositories has OctoCounts measured?

114 public GitHub repositories have PHP as their primary programming language in OctoCounts' index. This page lists the 50 largest by code lines; a repository analyzed with custom counting options keeps those counts as a separate saved result.

Does more source lines of code mean more complexity?

Not necessarily. SLOC measures size, not complexity, quality, or maintainability. A larger codebase can mean more features, more generated or vendored code, more verbose language idioms, or more tests — none of which imply the code is harder to work with. Use line counts to gauge the scale of what you would be reading or maintaining, not as a quality signal.

Curated comparisons in PHP