    Skip to content

      Navigation Menu

            Sign in Appearance settings
                * Platform
                        + AI CODE CREATION
                            o GitHub Copilot Write better code with AI
                            o GitHub Copilot app Direct agents from issue to merge
                            o MCP Registry Integrate external tools
                        + DEVELOPER WORKFLOWS
                            o Actions Automate any workflow
                            o Codespaces Instant dev environments
                            o Issues Plan and track work
                            o Code Review Manage code changes
                            o Code Quality Enforce quality at merge
                        + APPLICATION SECURITY
                            o GitHub Advanced Security Find and fix vulnerabilities
                            o Code security Secure your code as you build
                            o Secret protection Stop leaks before they start
                        + EXPLORE
                            o Why GitHub
                            o Documentation
                            o Blog
                            o Changelog
                            o Marketplace
                      View all features
                * Solutions
                        + BY COMPANY SIZE
                            o Enterprises
                            o Small and medium teams
                            o Startups
                            o Nonprofits
                        + BY USE CASE
                            o App Modernization
                            o DevSecOps
                            o DevOps
                            o CI/CD
                            o View all use cases
                        + BY INDUSTRY
                            o Healthcare
                            o Financial services
                            o Manufacturing
                            o Government
                            o View all industries
                      View all solutions
                * Resources
                        + EXPLORE BY TOPIC
                            o AI
                            o Software Development
                            o DevOps
                            o Security
                            o View all topics
                        + EXPLORE BY TYPE
                            o Customer stories
                            o Events & webinars
                            o Ebooks & reports
                            o Business insights
                            o GitHub Skills
                        + SUPPORT & SERVICES
                            o Documentation
                            o Customer support
                            o Community forum
                            o Trust center
                            o Partners
                      View all resources
                * Open Source
                        + COMMUNITY
                            o GitHub Sponsors Fund open source developers
                        + PROGRAMS
                            o Security Lab
                            o Maintainer Community
                            o Accelerator
                            o GitHub Stars
                            o Archive Program
                        + REPOSITORIES
                            o Topics
                            o Trending
                            o Collections
                * Enterprise
                        + ENTERPRISE SOLUTIONS
                            o Enterprise platform AI-powered developer platform
                        + AVAILABLE ADD-ONS
                            o GitHub Advanced Security Enterprise-grade security features
                            o Copilot for Business Enterprise-grade AI features
                            o Premium Support Enterprise-grade 24/7 support
              * Pricing
                Type / to search
                Sign in
              Sign up Appearance settings
      You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

              Uh oh!

              There was an error while loading. Please reload this page.

              composer / composer Public

                      * Uh oh!

                        There was an error while loading. Please reload this page.

              * Notifications You must be signed in to change notification settings
              * Fork 4.8k
                * Star 29.5k
          * Code
          * Issues 128
          * Pull requests 28
          * Discussions
          * Actions
          * Security and quality 14
          * Insights
          Additional navigation options
                  * Code
                  * Issues
                  * Pull requests
                  * Discussions
                  * Actions
                  * Security and quality
                  * Insights
                                              main
                                          Branches Tags
                                            Go to file
                                        Code
                                          Open more actions menu

                                        Folders and files

                                          Name                        Name                          Last commit message    Last commit date
                                            Latest commit           
                                                                    
                                                History             
                                                                    
                                                13,206 Commits      
                                                  13,206 Commits    
                                                  .github                     .github                                                      
                                                  bin                         bin                                                          
                                                  doc                         doc                                                          
                                                  phpstan                     phpstan                                                      
                                                  res                         res                                                          
                                                  src                         src                                                          
                                                  tests                       tests                                                        
                                                  .editorconfig               .editorconfig                                                
                                                  .gitattributes              .gitattributes                                               
                                                  .gitignore                  .gitignore                                                   
                                                  .php-cs-fixer.php           .php-cs-fixer.php                                            
                                                  CHANGELOG.md                CHANGELOG.md                                                 
                                                  CODE_OF_CONDUCT.md          CODE_OF_CONDUCT.md                                           
                                                  LICENSE                     LICENSE                                                      
                                                  PORTING_INFO                PORTING_INFO                                                 
                                                  README.md                   README.md                                                    
                                                  UPGRADE-2.0.md              UPGRADE-2.0.md                                               
                                                  composer.json               composer.json                                                
                                                  composer.lock               composer.lock                                                
                                                  phpunit.xml.dist            phpunit.xml.dist                                             
                                            View all files          
                                          

                                              Repository files navigation

                                                * 
                                                * README
                                                * Code of conduct
                                                * Contributing
                                                * License
                                                * Security
                                                More items

                                                Dependency Management for PHP

                                              Composer helps you declare, manage, and install dependencies of PHP projects.

                                              See https://getcomposer.org/ for more information and documentation.

                                                Installation / Usage

                                              Download and install Composer by following the official instructions.

                                              For usage, see the documentation.

                                                Packages

                                              Find public packages on Packagist.org.

                                              For private package hosting take a look at Private Packagist.

                                                Community

                                              Follow @packagist or @seldaek on X for announcements, or check the #composerphp hashtag.

                                              For support, Stack Overflow offers a good collection of Composer related questions, or you can use the GitHub discussions.

                                              Please note that this project is released with a Contributor Code of Conduct. By participating in this project and its community you agree to abide by those terms.

                                                Requirements

                                                Latest Composer

                                              PHP 7.2.5 or above for the latest version.

                                                Composer 2.2 LTS (Long Term Support)

                                              PHP versions 5.3.2 - 8.1 are still supported via the LTS releases of Composer (2.2.x). If you run the installer or the self-update command the appropriate Composer version for your PHP should be automatically selected.

                                                Binary dependencies

                                                * unzip (or 7z/7zz)
                                                * gzip
                                                * tar
                                                * unrar
                                                * xz
                                                * Git (git)
                                                * Mercurial (hg)
                                                * Fossil (fossil)
                                                * Perforce (p4)
                                                * Subversion (svn)

                                              The need for these binary dependencies may vary depending on individual use cases. For most users, only 2 dependencies are essential for Composer: unzip (or 7z/7zz), and git. If the ext-zip extension is available, only git is needed, but this is not recommended.

                                                Authors

                                                * Nils Adermann | GitHub | X | naderman@naderman.de | naderman.de
                                                * Jordi Boggiano | GitHub | X | j.boggiano@seld.be | seld.be

                                              See also the list of contributors who participated in this project.

                                                Security Reports

                                              Please send any sensitive issue to security@packagist.org. Thanks!

                                                Sponsors

                                              Thank you to our sponsors for supporting the ongoing development and maintenance of Composer and Packagist.org! See getcomposer.org/sponsor for more information on becoming a sponsor.

                                                License

                                              Composer is licensed under the MIT License - see the LICENSE file for details.

                                                Acknowledgments

                                                * This project's Solver started out as a PHP port of openSUSE's Libzypp satsolver.

                                        About

                                        Dependency Manager for PHP

                                          getcomposer.org/

                                        Topics

                                          composerdependency-managerpackage-managerpackagesphp

                                        Resources

                                          Readme
                                          License

                                        Code of conduct

                                          Code of conduct

                                        Contributing

                                          Contributing

                                        Security policy

                                          Security policy
                                          Activity
                                          Custom properties

                                        Stars

                                          29.5k stars

                                        Watchers

                                          587 watching

                                        Forks

                                          4.8k forks
                                          Report repository

                                        Releases

                                        Sponsor this project

                                        Packages

                                        Used by

                                        Contributors

                                        Languages

    Footer

        © 2026 GitHub, Inc.

      Footer navigation

        * Terms
        * Privacy
        * Security
        * Status
        * Community
        * Docs
        * Contact
        * Manage cookies
        * Do not share my personal information
      You can’t perform that action at this time.