Preloader
Others
  • Estimated reading time: 1 Minute

How to require a local package using composer in your PHP project

{
    "repositories": [
        {
            "type": "path",
            "url": "./../my-local-repository",
            "options": {
                "symlink": true
            }
        }
    ]
}

├── my-local-repository/
│   └── mylibrary/
│       ├── composer.json
│       ├── src
│       └── vendor
└── myproject/
    ├── composer.json
    ├── src
    └── vendor
        ├── autoload.php
        └── composer
Related articles
Trade Show Marketing Strategies for Business Growth
7 Aug, 2026
  • Estimated reading time: 4 Minutes
How to Get Business Funding: The Complete Working Capital Guide
7 Aug, 2026
  • Estimated reading time: 14 Minutes
Vacuum Casting Service: The Bridge to Rapid Prototyping
7 Aug, 2026
  • Estimated reading time: 4 Minutes
Building Cleaner Video Workflows with Browser-Based AI Tools
7 Aug, 2026
  • Estimated reading time: 5 Minutes
Weekly trending
Trade Show Marketing Strategies for Business Growth
7 Aug, 2026
  • Estimated reading time: 4 Minutes
How to Get Business Funding: The Complete Working Capital Guide
7 Aug, 2026
  • Estimated reading time: 14 Minutes
Vacuum Casting Service: The Bridge to Rapid Prototyping
7 Aug, 2026
  • Estimated reading time: 4 Minutes
Our Sponsors

Our blog is proudly supported by industry-leading sponsors.