uzyn / cakephp-composer Goto Github PK
View Code? Open in Web Editor NEWCakePHP Composer plugin
Home Page: http://bakery.cakephp.org/articles/uzyn/2012/06/20/composer_plugin_for_cakephp
License: Other
CakePHP Composer plugin
Home Page: http://bakery.cakephp.org/articles/uzyn/2012/06/20/composer_plugin_for_cakephp
License: Other
I use the composer plugin, but I can't update the bootsrap to add CakePlugin::load('plugin'); if I add it before running Console/cake composer.c install I'll get an error that this plugin doesn't exist and the composer won't work.
How do I fix this...?
I am implementing your Plugin as part of a CI setup.
I am stuck at the stage where I get prompted
server$ Console/cake composer.c update
Composer is not installed.
Would you like to install the latest version of Composer? (y/n)
[y] >
Because I run Console/cake composer.c update as part of phing task, I am unable to get the script to press y at the right place.
Is tehre a way I can run Console/cake composer.c update -y so taht I do not trigger this question?
Hi Uzyn,
this is not an issue of your plugin per se. More to do with the use of Composer in a CakePHP app.
I am having some weird issues with git submodule update
for a Plugin dependency with Jenkins @ CloudBees.
So I am switching some, if not, all my dependencies from git submodule
to Composer
.
I came across this repo called composer installers
. https://github.com/composer/installers
I was wondering how to use this for both Plugin and Vendor dependencies.
I am not familiar with Composer and even after reading the docs, I am uncertain how to say, place this dependency specifically to Plugin/xxx
I know how to do this with git submodule add
.
So how do I do the same but with Composer or better yet, Composer installers, please advise me.
To make things easier, I want to use 2 actual examples.
composer.json
is overwritten when existing composer.json
is not valid even if user answers n
to:
Overwrite the existing and create a default pre-configured composer.json? (y/n)
[y] > n
Following along with the info on installing this plugin into a cakephp project, and when attempting to install the plugins specified in composer.json, via cake composer.c install, getting:
PHP Fatal error: Class 'Composer\Installers\Installer' not found in phar:///Library/WebServer/Documents/Server-PHP/app/Plugin/Composer/Vendor/Composer/composer.phar/src/Composer/Plugin/PluginManager.php on line 216
Hi!
cakephp-composer
docs suggest that it should be installed into the project manually: either by extracting an archive or cloning the repo.
But here you suggest that Plugins/
and Vendor/
should be ignored via .gitignore
.
These two facts combined make it impossible to share the project via version control. After cloning the repo, it will be impossible to install dependencies due to cakephp-composer
not existing in the cloned project.
Not ignoring Plugins/
and Vendor/
is also bad: Nested .git
folders are treated as broken submodules; git pull
would fail:
Please advise.
You should add a composer.json file.
See
https://github.com/electblake/cakephp-composer/compare
and
https://github.com/JacopKane/cakephp-composer/compare
Composers Autoloader is not loading the php components that were downloaded from Composer from within a CakePHP Component - ie:
app/Controller/Component/MyComponent.php
Fatal error: Class 'ApplePusher' not found in /path/to/cake/app/Controller/Component/MyComponent.php on line 20
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.