Thursday, July 9, 2015

Composer and Cake lib folder

I have a standard Cake project setup on Github. The project root for has the app, lib folders in addition to all the other files like .gitignore. I would like to remove the lib folder from my repo and control which Cake version I am using with a dependency manager. Is this possible with composer?

For example, I could just change the composer json file from Cake 2.4 to 2.6, and the repo will not have to track the lib folder. Then when I want to put the project online, I can just have composer download the lib folder.

Is this possible? What would that composer file look like? I tried adding "cakephp/cakephp": "~2.6" to the composer file but it gives and error saying the package could not be found.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: