Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8853369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:38:09+00:00 2026-06-14T13:38:09+00:00

Is it possible to create a custom PHP Composer installer that places code in

  • 0

Is it possible to create a custom PHP Composer installer that places code in multiple different directories? I would like to link to a repository that is setup like this:

/trunk

  • /public
  • /library
  • /content

and composer extract that to

/myproject/public

/myproject/library

/myproject/content

Is that possible? I know I need a custom installer to do this, but I’m not exactly sure how to setup the installer to export code from the repo and put it in multiple different directories.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T13:38:10+00:00Added an answer on June 14, 2026 at 1:38 pm

    You can create a custom installer which takes care of installing your packages into these directories. You indicate which custom installer is to be used using the “type” attribute on a package. Custom installers allow you to run any PHP code after downloading a package, so you can do anything there you can think of, in particular move different files to different places. For further details on creating a custom installer please see http://getcomposer.org/doc/articles/custom-installers.md

    In general though I agree with what people commented on your question, you really should not do this to begin with. Try and restructure your project so you do not need this functionality and you will save yourself a lot of work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

is it possible to create custom tag using php like i am trying to
Is it possible to create a custom route for GDirections to walk around? Like
Is it possible to create a custom configuration file (other than app.config) that can
How do I create a PHP script that will redirect to a custom URL
I'm wondering if it is possible in PHP to create a custom break command/function.
I would like to create custom slugs for pages in my CMS, so users
This is the 'add new contact' window. Is it possible to create custom data
is it possible to create a custom NaN value in Python? I know a
Is it possible to create a custom UIPopoverController? Can you give me some suggestions
Is it possible to create a custom dictionary for an edittext? In other words,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.