Note that there are some explanatory texts on larger screens.

plurals
  1. POZF2 composer usage to install new module
    primarykey
    data
    text
    <p>I am facing some problems with using the composer to install ZF2 components.</p> <p>I do know how to work with ZF2 but now I want to make user of composer to get modules into my existing project much easier than download them by zip.</p> <p>I find out how to build a new project by composer:</p> <pre><code>composer create-project --repository-url="http://packages.zendframework.com" zendframework/skeleton-application --stability dev </code></pre> <p>after I rename the skeleton-application to my project name.</p> <p>OK, my issue. I would like to install the ZcfBase module by composer but I get the follow problems;</p> <p>I added the composer value of the project into my own composer;</p> <pre><code>{ "name": "zendframework/skeleton-application", "description": "Skeleton Application for ZF2", "license": "BSD-3-Clause", "keywords": [ "framework", "zf2" ], "homepage": "http://framework.zend.com/", "require": { "php": "&gt;=5.3.3", "zendframework/zendframework": "2.2.*" }, "name": "zf-commons/zfc-base", "description": "A set of genetic (abstract) classes which are commonly used across multiple modules.", "type": "library", "keywords": [ "zf2" ], "homepage": "https://github.com/ZF-Commons/ZfcBase", "authors": [ { "name": "Evan Coury", "email": "me@evancoury.com", "homepage": "http://blog.evan.pro/" }, { "name": "Kyle Spraggs", "email": "theman@spiffyjr.me", "homepage": "http://www.spiffyjr.me/" } ], "require": { "php": "&gt;=5.3.3", "zendframework/zend-db": "~2.1", "zendframework/zend-eventmanager": "~2.1", "zendframework/zend-loader": "~2.1", "zendframework/zend-modulemanager": "~2.1", "zendframework/zend-mvc": "~2.1", "zendframework/zend-servicemanager": "~2.1", "zendframework/zend-stdlib": "~2.1" }, "autoload": { "psr-0": { "ZfcBase": "src/" }, "classmap": [ "./Module.php" ] } } </code></pre> <p>I run the 'composer update' and after 'composer install' which returns into:</p> <pre><code> [RuntimeException] Could not scan for classes inside "./Module.php" which does not appear to be a file nor a folder </code></pre> <p>My structure of the vendor is a bit strange too in my eyes;</p> <p><img src="https://i.stack.imgur.com/gRKgZ.png" alt="enter image description here"></p> <p>I am used to this structure (without using composer)</p> <p><img src="https://i.stack.imgur.com/Bjtah.png" alt="enter image description here"></p> <p>Hope someone can give me a turn in the right way by how to configure it in the right way.</p> <p>Thanks in advance! :)</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload