I've an Yii2 project with this composer.json:
"minimum-stability": "stable",
"require": {
"php": ">=5.4.0",
"yiisoft/yii2": "*",
"yiisoft/yii2-bootstrap": "*",
"yiisoft/yii2-swiftmailer": "*",
"kartik-v/yii2-widgets": "*",
"warrence/yii2-kartikgii": "dev-master",
"dektrium/yii2-user": "dev-master",
"claudejanz/yii2-file-behavior": "*",
"bower-asset/jquery": "*",
"yiidoc/yii2-redactor": "*",
"nemmo/yii2-attachments": "dev-master",
"mongosoft/yii2-soap-server": "*",
"bryglen/yii2-apns-gcm": "dev-master",
"duccio/apns-php": "*",
"yiisoft/yii2-codeception": "~2.0",
"codeception/codeception": "*",
"yiisoft/yii2-faker": "~2.0",
"kolyunya/yii2-map-input-widget": "dev-search_box",
"dmstr/yii2-adminlte-asset": "2.*",
"himiklab/yii2-easy-thumbnail-image-helper": "*",
"dektrium/yii2-rbac": "dev-master",
"kartik-v/yii2-widget-fileinput": "*",
"kartik-v/yii2-grid": "*",
"kartik-v/yii2-editable": "*",
"insolita/yii2-adminlte-widgets": "*",
"kartik-v/yii2-date-range": "dev-master"
},
I'm trying to upgrade kartik-v/yii2-widget-fileinput to latest stable version. Running composer.phar info returns the following:
kartik-v/yii2-widget-fileinput v1.0.2
But whatever I enter in the stability flag for that package, being it the actual *, #dev, ^1.0, ~1, the composer.phar update kartik-v/yii2-widget-fileinput won't update the package to 1.0.5.
I'm running composer 1.1.3, just updated.
Related
Moving from laravel 6 to 7x getting this error, arcanedev/laravel-messenger 7.2.0 requires arcanedev/support ^5.1
This is the error while i run composer update
This is composer.json file
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"require": {
"php": "^7.2.5",
"arcanedev/laravel-messenger": "7.2",
"cboden/ratchet": "^0.4.2",
"fideloper/proxy": "^4.2",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^6.3",
"intervention/image": "^2.4",
"laravel/cashier": "^10.5",
"laravel/framework": "7.0.*",
"laravel/nexmo-notification-channel": "^2.3",
"laravel/tinker": "^2.0",
"php-imap/php-imap": "^4.1",
"pusher/pusher-php-server": "^4.0",
"spatie/laravel-permission": "^3.13.0",
"twilio/sdk": "^6.6",
"webklex/laravel-imap": "^1.4"
},
"require-dev": {
"facade/ignition": "^2.0",
"beyondcode/laravel-dump-server": "^1.0",
"filp/whoops": "^2.0",
"fzaninotto/faker": "^1.9.1",
"laravel/ui": "^2.0.0",
"mockery/mockery": "^1.3.1",
"nunomaduro/collision": "^4.1",
"phpunit/phpunit": "^8.5"
},
I can not post complete Composer.json file here getting this error while i posting my question, so i attached another screenshot of my composer.json file
screenshot of my composer.json file
Can anyone help me out? Thank you!
Trying to install a simple repository using composer (composer require vimeo/vimeo-api ^2.0)
And I can't seem to get it work.
Here's the error
Installation failed, reverting ./composer.json to its original content.
[ErrorException]
Undefined property: Fxp\Composer\AssetPlugin\Repository\AssetVcsRepository::$verbose
Exception trace:
() at /Users/kevin/Documents/projects/hy/vendor/fxp/composer-asset-plugin/Repository/AssetVcsRepository.php:68
Composer\Util\ErrorHandler::handle() at /Users/kevin/Documents/projects/hy/vendor/fxp/composer-asset-plugin/Repository/AssetVcsRepository.php:68
Fxp\Composer\AssetPlugin\Repository\AssetVcsRepository->initTags() at /Users/kevin/Documents/projects/hy/vendor/fxp/composer-asset-plugin/Repository/AssetVcsRepository.php:44
Fxp\Composer\AssetPlugin\Repository\AssetVcsRepository->initialize() at phar:///usr/local/bin/composer.phar/src/Composer/Repository/ArrayRepository.php:185
Composer\Repository\ArrayRepository->getPackages() at phar:///usr/local/bin/composer.phar/src/Composer/DependencyResolver/Pool.php:104
Composer\DependencyResolver\Pool->addRepository() at /Users/kevin/Documents/projects/hy/vendor/fxp/composer-asset-plugin/Repository/Util.php:60
Fxp\Composer\AssetPlugin\Repository\Util::addRepositoryInstance() at /Users/kevin/Documents/projects/hy/vendor/fxp/composer-asset-plugin/Repository/Util.php:39
Fxp\Composer\AssetPlugin\Repository\Util::addRepository() at /Users/kevin/Documents/projects/hy/vendor/fxp/composer-asset-plugin/Repository/AbstractAssetsRepository.php:140
Fxp\Composer\AssetPlugin\Repository\AbstractAssetsRepository->whatProvides() at phar:///usr/local/bin/composer.phar/src/Composer/DependencyResolver/Pool.php:204
Composer\DependencyResolver\Pool->computeWhatProvides() at phar:///usr/local/bin/composer.phar/src/Composer/DependencyResolver/Pool.php:193
Composer\DependencyResolver\Pool->whatProvides() at phar:///usr/local/bin/composer.phar/src/Composer/DependencyResolver/RuleSetGenerator.php:164
Composer\DependencyResolver\RuleSetGenerator->whitelistFromPackage() at phar:///usr/local/bin/composer.phar/src/Composer/DependencyResolver/RuleSetGenerator.php:353
Composer\DependencyResolver\RuleSetGenerator->getRulesFor() at phar:///usr/local/bin/composer.phar/src/Composer/DependencyResolver/Solver.php:217
Composer\DependencyResolver\Solver->solve() at phar:///usr/local/bin/composer.phar/src/Composer/Installer.php:475
Composer\Installer->doInstall() at phar:///usr/local/bin/composer.phar/src/Composer/Installer.php:229
Composer\Installer->run() at phar:///usr/local/bin/composer.phar/src/Composer/Command/RequireCommand.php:228
Composer\Command\RequireCommand->doUpdate() at phar:///usr/local/bin/composer.phar/src/Composer/Command/RequireCommand.php:185
Composer\Command\RequireCommand->execute() at phar:///usr/local/bin/composer.phar/vendor/symfony/console/Command/Command.php:245
Symfony\Component\Console\Command\Command->run() at phar:///usr/local/bin/composer.phar/vendor/symfony/console/Application.php:835
Symfony\Component\Console\Application->doRunCommand() at phar:///usr/local/bin/composer.phar/vendor/symfony/console/Application.php:185
Symfony\Component\Console\Application->doRun() at phar:///usr/local/bin/composer.phar/src/Composer/Console/Application.php:267
Composer\Console\Application->doRun() at phar:///usr/local/bin/composer.phar/vendor/symfony/console/Application.php:117
Symfony\Component\Console\Application->run() at phar:///usr/local/bin/composer.phar/src/Composer/Console/Application.php:106
Composer\Console\Application->run() at phar:///usr/local/bin/composer.phar/bin/composer:61
require() at /usr/local/bin/composer.phar:24
I've tried using composer update, I've tried deleting the fxp/composer-asset-plugin and re-installing. Nothing seems to work.
In addition this is a Yii 2 app.
Per request I'm adding the composer.json into this.
{
"name": "yiisoft/yii2-app-basic",
"description": "Yii 2 Basic Project Template",
"keywords": ["yii2", "framework", "basic", "project template"],
"homepage": "http://www.yiiframework.com/",
"type": "project",
"license": "BSD-3-Clause",
"support": {
"issues": "https://github.com/yiisoft/yii2/issues?state=open",
"forum": "http://www.yiiframework.com/forum/",
"wiki": "http://www.yiiframework.com/wiki/",
"irc": "irc://irc.freenode.net/yii",
"source": "https://github.com/yiisoft/yii2"
},
"minimum-stability": "stable",
"repositories": [
],
"require-dev": {
"yiisoft/yii2-codeception": "*",
"yiisoft/yii2-debug": "*",
"yiisoft/yii2-faker": "*"
},
"require": {
"php": ">=5.4.0",
"yiisoft/yii2": "~2.0.15",
"yiisoft/yii2-bootstrap": "*",
"yiisoft/yii2-swiftmailer": "*",
"dektrium/yii2-user": "*",
"yiidoc/yii2-redactor": "*",
"kartik-v/yii2-widget-fileinput": "#dev",
"kartik-v/yii2-widget-datepicker": "#dev",
"kartik-v/yii2-widget-datetimepicker": "*",
"kartik-v/yii2-widget-colorinput": "*",
"kartik-v/yii2-grid": "#dev",
"m35/thecsv": "^1.0",
"aweber/aweber": "^1.1",
"sammaye/yii2-mailchimp": "*",
"nickcv/yii2-mandrill": "*",
"ofat/yii2-yashop-ses": "*",
"frostealth/yii2-aws-s3": "#stable",
"drewm/mailchimp-api": "^2.1",
"ruskid/yii2-stripe": "*",
"drewm/drip": "^0.6.0",
"linslin/yii2-curl": "*",
"braintree/braintree_php": "^3.17",
"kartik-v/yii2-widget-timepicker": "*",
"yii-dream-team/yii2-timezone-picker": "^0.1.0",
"bryglen/yii2-sendgrid": "*",
"mailgun/mailgun-php": "^1.8",
"boundstate/yii2-mailgun": "*",
"omnilight/yii2-vuejs": "^1.0",
"jacobbennett/sendyphp": "^1.3",
"yiisoft/yii2-gii": "^2.0",
"vova07/yii2-imperavi-widget": "*",
"froala/yii2-froala-editor": "^2.7",
"marqu3s/yii2-summernote": "dev-master",
"himiklab/yii2-recaptcha-widget": "*",
"activecampaign/api-php": "^2.0",
"kartik-v/yii2-widgets": "*",
"abraham/twitteroauth": "^0.6.6",
"kartik-v/yii2-slider": "*",
"miloschuman/yii2-highcharts-widget": "*",
"yiisoft/yii2-jui": "^2.0",
"stripe/stripe-php": "^6.26",
"kartik-v/yii2-export": "#dev",
"2amigos/yii2-tinymce-widget": "~1.1",
"uploadcare/uploadcare-php": "^2.2"
},
"config": {
"process-timeout": 1800
},
"scripts": {
"post-create-project-cmd": [
"yii\\composer\\Installer::postCreateProject"
]
},
"extra": {
"yii\\composer\\Installer::postCreateProject": {
"setPermission": [
{
"runtime": "0777",
"web/assets": "0777",
"yii": "0755"
}
],
"generateCookieValidationKey": [
"config/web.php"
]
},
"asset-installer-paths": {
"npm-asset-library": "vendor/npm",
"bower-asset-library": "vendor/bower"
}
}
}
Thanks in advance.
As far as I can see in the repository for fxp/composer-asset-plugin, it has seen some updates for the property $verbose which is no longer available in current Composer versions. You should update that package.
As it is not listed in your composer.json, some other package seems to require it. And to update the asset plugin, you probably need to update that other package too - check through composer why fxp/composer-asset-plugin which other plugin is responsible for this
This question already has answers here:
Composer require runs out of memory. PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted
(39 answers)
Closed 2 years ago.
i have business hosting at All-Inkl.com, unfortunately i cannot use composer there anymore. The support wrote more that I have reached the limit of 1.5 GB and more is not possible.
PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes)
Now my question is, is there any way to let the Composer update or install it piece by piece, so that it frees the memory in between or is there any other solution to run my Laravel app on the server?
Currently the following packages are in the Composer JSON. And there are a few more planned.
"require": {
"php": "^7.2.5",
"ext-json": "*",
"benjaminhirsch/nova-slug-field": "^1.2",
"cloudcake/nova-snowball": "^1.2",
"ctessier/nova-advanced-image-field": "^1.0",
"davidpiesse/nova-toggle": "^0.0.6",
"digitalcloud/nova-address-field": "^1.3",
"dillingham/nova-detail-link": "^1.0",
"ebess/advanced-nova-media-library": "*",
"ek0519/quilljs": "^0.1.9",
"fideloper/proxy": "^4.2",
"fruitcake/laravel-cors": "^1.0",
"gabrieliuga/laravel-mail-log": "*",
"guzzlehttp/guzzle": "^6.3",
"inspheric/nova-email-field": "^1.42",
"jenssegers/agent": "^2.6",
"jubeki/nova-card-linkable": "^1.1",
"kabbouchi/nova-logs-tool": "*",
"khalin/nova-link-field": "*",
"klepak/nova-dynamic-page-title": "^1.0",
"laraning/nova-time-field": "^0.2.5",
"laravel/framework": "^7.0",
"laravel/nova": "*",
"laravel/tinker": "^2.0",
"laravel/ui": "^2.0",
"laravelcollective/html": "^6.1",
"m-a-k-o/nova-custom-table-card": "^2.0",
"maatwebsite/laravel-nova-excel": "^1.2",
"normanhuth/nova-menu-order": "1.0.2",
"ofcold/nova-sortable": "^1.0",
"opanegro/field-nova-password-show-hide": "^1.0",
"raiym/instagram-php-scraper": "^0.9.7",
"richardkeep/nova-timenow": "^1.0",
"sbine/route-viewer": "^0.0.6",
"sidis405/nova-installed-packages": "^0.1.8",
"spatie/laravel-activitylog": "^3.11",
"spatie/laravel-backup": "^6.8",
"spatie/laravel-medialibrary": "^7.19",
"spatie/laravel-permission": "^3.11",
"spatie/nova-backup-tool": "*",
"spatie/schema-org": "^2.12",
"vyuldashev/nova-permission": "*",
"whitecube/nova-flexible-content": "^0.1.16"
},
"require-dev": {
"facade/ignition": "^2.0",
"fzaninotto/faker": "^1.9.1",
"mockery/mockery": "^1.3.1",
"nunomaduro/collision": "^4.1",
"phpmd/phpmd": "^2.8",
"phpunit/phpunit": "^8.5",
"sirbrillig/phpcs-import-detection": "^1.2",
"sirbrillig/phpcs-variable-analysis": "^2.8",
"squizlabs/php_codesniffer": "^3.5"
},
I tried the limit at -1 and 99999.The "All-Inkl" webhosting servers are just too weak and already reached their limits. I will now change the provider and temporarily copy the packages manually to the server.
I have successfully updated my Laravel project from 5.4.* to 5.7.* however when I run the artisan command api:route it come returns this error:
In RouteListCommand.php line 71:
count(): Parameter must be an array or an object that implements
Countable
I have deleted the vendor folder and ran composer update.
composer.json
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": "^7.1.3",
"barryvdh/laravel-cors": "^0.11.2",
"bugsnag/bugsnag-laravel": "^2.0",
"dingo/api": "1.0.*#dev",
"doctrine/dbal": "^2.6",
"dompdf/dompdf": "^0.8.2
"laravel/framework": "5.7.*",
"laravel/socialite": "^3.0",
"laravel/tinker": "~1.0",
"pragmarx/google2fa-laravel": "^0.2.0",
"pusher/pusher-php-server": "^3.0",
"tymon/jwt-auth": "0.5.*"
"yajra/laravel-datatables-fractal": "^1.0",
"yajra/laravel-datatables-oracle": "~8.0",
"wpb/string-blade-compiler": "dev-laravel-5.7"
},
"require-dev": {
"barryvdh/laravel-dompdf": "^0.8.2",
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "7.0"
},
I'm trying to get Composer to install the 3.0.0 branch of a GitHub project (onelogin/php-saml). However, no matter what I try, it keeps trying to install the master branch version (2.12). Am I missing something? Below is my composer.json
{
"name": "munkireport/munkireport-php",
"description": "Reporting tool for munki",
"type": "project",
"license": "MIT",
"require-dev": {
"squizlabs/php_codesniffer": "^2.5"
},
"require": {
"php": ">=7.0.27",
"ext-dom": "*",
"guzzlehttp/guzzle": "~6.0",
"hautelook/phpass": "^1.1",
"illuminate/console": "~5.4",
"illuminate/database": "5.4.36",
"illuminate/filesystem": "~5.4",
"league/flysystem": "~1.0",
"rodneyrehm/plist": "^2.0",
"doctrine/dbal": "~2.5",
"defuse/php-encryption": "^2.1",
"onelogin/php-saml": "3.0.0-dev"
},
"suggest": {
"adldap2/adldap2": "^8.0 Required for AD authentication"
},
"autoload": {
"psr-4": {
"munkireport\\models\\": "app/models/",
"munkireport\\controller\\": "app/controllers",
"munkireport\\lib\\": "app/lib/munkireport"
}
},
"repositories": [
{
"type": "git",
"url": "https://github.com/onelogin/php-saml"
}
]
}
Output:
Using version ^2.12 for onelogin/php-saml
I was able to bypass this with the following command:
./composer require onelogin/php-saml:3.0.0.x-dev