php - Trying to get Composer to bring a folder 'src/' from it's package over with it to a my project -


i built little library test how can use composer build libraries , bring across projects when ever. can inject library fine doesn't seem bring across folder 'src/' hold classes. want composer bring folder along rest of library can use it. have tried working around composer.json file using psr-4, classmap etc must doing wrong.

my files , folder structure below.

library composer.json file:

{ "name": "icbfdblibs/ipmanager", "description": "ipmanager library", "license": "bsd-3-clause", "keywords": [     "framework",     "zf2" ], "homepage": "http://framework.zend.com/", "require": {     "php": ">=5.3.3",     "zendframework/zendframework": "~2.4" },  "autoload": {     "psr-4": {         "ipmanager\\": "src/"     } }, "classmap": [     "src/" ]  } 

how folder structure library is:

mainfolder   |   ---ipmanager         |         ---src             |             ---ipmanager                 |                 ---ipmanager.php         ---build.xml         ---composer.json         ---etc.etc 

the project i'm using bring above library across composer.json file:

{ "name": "zendframework/skeleton-application", "description": "skeleton application zf2", "license": "bsd-3-clause", "keywords": [     "framework",     "zf2" ], "homepage": "http://framework.zend.com/", "require": {     "php": ">=5.6.0",     "zendframework/zendframework": "~2.4",     "icbfdblibs/welcomelib": "1.0.7",     "icbfdblibs/ipmanager": "1.0.8" }, "autoload": {     "psr-4": { "test\\test\\public\\": "" } }, "minimum-stability": "stable", "repositories": [ {   "type": "package",   "package": {     "name": "icbfdblibs/ipmanager",             "version": "1.0.8",             "dist": {                 "url": "/home/{username}/dev/git/{name}libs/ipmanager/application.zpk",                 "type": "zip"             }     } } ] } 

i library above configuration not src file want.

any or guidance appreciated.

thank you.


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -