composer-php

how to develop another sub-module along with the main application. [composer,php]

寵の児 提交于 2019-12-19 11:35:39
问题 I know how git submodules works, and how we can use it.. now i am in situation where main application that depends on many other composer packages and along with that i have to made and develop a small another package that will be separate from main project (kind of lib.) so how can i develop this small package along with main project without making it separate project and without publishing to any vcs just withing that project directory. so later i can take it out and do whatever i want. i

Heroku deploy failed: [remote rejected] master -> master (pre-receive hook declined): error: failed to push some refs

廉价感情. 提交于 2019-12-19 10:44:16
问题 I copied an existing app into a new repository. It works locally. Deploys work for the original. I'm using PHP, Yii, and Composer. I don't know what fxp/composer-asset-plugin is. C:\Users\Chloe\workspace\affiliorama>git push heroku master Counting objects: 699, done. Delta compression using up to 8 threads. Compressing objects: 100% (655/655), done. Writing objects: 100% (699/699), 25.36 MiB | 142.00 KiB/s, done. Total 699 (delta 146), reused 0 (delta 0) remote: Compressing source files...

Laravel 4: Fatal error: Class 'Patchwork\Utf8\Bootup' not found in autoload.php

给你一囗甜甜゛ 提交于 2019-12-19 09:55:09
问题 I added "cviebrock/image-validator": "1.0.*" to require section of composer.json . After, I ran composer update , I am getting this Fatal error. :::ERROR::: Fatal error: Class 'Patchwork\Utf8\Bootup' not found in F:\xampp\htdocs\project\ bootstrap\autoload.php on line 46 Script php artisan clear-compiled handling the post-update-cmd event returned wi th an error [RuntimeException] Error Output: update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [-

Do you have to run Composer on localhost and on production?

血红的双手。 提交于 2019-12-19 08:57:45
问题 I'm new to Composer (getcomposer.org) and wasn't sure how it works if I install a package locally using Composer and then push my codebase to my production server using Git. Do I have to run Composer again on the production server? cheers, J 回答1: When you setup your project, you add your dependencies into your composer.json file in your local project directory. Once you have done this, you will need to run composer update. You can also run composer install, however, without a composer.lock

installing cakephp 3 manually, without composer

℡╲_俬逩灬. 提交于 2019-12-19 05:06:29
问题 I need to install CakePHP 3 in an old-fashioned upload-unzip-run way. The archive I've downloaded from cakephp/cakephp/tags does not contain the default folders like webroot , Model etc., which means it's not complete. The official documentation does not cover this. Here's a relevant Github issue I found, but the person ends up still using Composer. There's also cakephp/app and it seems to include those missing files, but it's not mentioned in cakephp/cakephp 's composer.json, and even if I

Installing Composer in WAMP PHP Google+ Project, PHP is not recognised

好久不见. 提交于 2019-12-18 18:04:13
问题 I am following this PHP Google+ tutorial and I am trying to install composer in my WAMP directory C:\wamp\www\gplus-quickstart-php>curl -s https://getcomposer.org/installer | php but I'm getting this error 'php' is not recognized as an internal or external command operable program or batch file. How do I resolve this problem? I already have PHP installed (via WAMP Server). Do I have to install PHP in my computer as well? 回答1: Ok a couple of things you need to do here. First windows does not

How do I push files specified in .gitignore?

眉间皱痕 提交于 2019-12-18 16:58:46
问题 If I have a "vendors" directory in my .gitignore, is there a way I can set up a remote that will receive that directory anyway when I do a push? 回答1: I think the functionality you're looking for can be achieved by having a branch used to deploy to your Cloud Provider. Setup a dev branch which includes your .gitignore file, check your incremental work into that branch. Merge your dev branch into your deploy branch which doesn't contain a .gitignore file but contains the vendors directory. once

Composer could not find a composer.json

谁说胖子不能爱 提交于 2019-12-18 14:52:30
问题 I tried to install composer via brew per: In usr/local/bin (which was not on Mavricks and I had to make personally) I did. brew tap josegonzalez/homebrew-php brew install josegonzalez/php/composer I can run php composer.phar , but when I do php composer.phar install , I get the error: Composer could not find a composer.json file in /usr/local/bin To initialize a project, please create a composer.json file as described in the http://getcomposer.org/ "Getting Started" section So I go to the

My composer won't update completely with Laravel 4 it gets stuck with artisan

╄→гoц情女王★ 提交于 2019-12-18 12:56:11
问题 Here is the error I am getting: Script php artisan optimize handling the post-update-cmd event returned with an error [RuntimeException] Error Output: update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [packages1] ... [packagesN] This shows after: Writing lock file Generating autoload files I tried to delete all my folders

How do I change the packagist sticker for stable release?

一世执手 提交于 2019-12-18 12:16:47
问题 This is my open source code I wrote. https://github.com/simkimsia/UtilityBehaviors/blob/master/README.mdown I have a No Stable Release from packagist.org How do I go about having a Stable Release sticker from packagist ? 回答1: You have to tag your code with a version number. git tag -a 0.0.0 That will declare the first stable version. If you worry about an all-zero version number, you can start with something like 0.0.1 if you want. Try to stick to semantic versioning if you can: http://semver