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
How to Convert MP4 to SRT with AI and Free Tools
23 Aug, 2026
  • Estimated reading time: 7 Minutes
How Technology Is Revolutionizing Science Education
23 Aug, 2026
  • Estimated reading time: 4 Minutes
Where Smart Building Security Loses the Full Picture
23 Aug, 2026
  • Estimated reading time: 6 Minutes
Weekly trending
How to Convert MP4 to SRT with AI and Free Tools
23 Aug, 2026
  • Estimated reading time: 7 Minutes
How Technology Is Revolutionizing Science Education
23 Aug, 2026
  • Estimated reading time: 4 Minutes
Our Sponsors

Our blog is proudly supported by industry-leading sponsors.