Heroku - Unable to install Firebase firestore - Grpc extension issue - laravel

I am using heroku 20 and wanted to install cloud firestore but getting the error
google/cloud-firestore v1.27.2 requires ext-grpc
Here is how i am installing package,
composer require google/cloud-firestore
Does anyone know how to install grpc extension on heroku ?

ext-grpc is not listed among the PHP extensions available on Heroku, nor are arbitrary PECL packages supported by the official PHP buildpack.
I found a few attempts at adding support via third-party buildpacks, but don't believe that any of them actually work. If you need ext-grpc, you may have to host elsewhere.

Related

Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.2.5"

I'm trying to upload a plain laravel v5.8 project to a server. It gives me this error
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.2.5".
I updated the Laravel version to v6 and it still throws the same thing.
Is there any possible solution I tried many but nothing happens. Thanks in advance.
I faced this problem using the new version of composer, didn't have seen this issue before, although this question is a bit old the solution can help someone else.
I did this working in a development machine, if you really need to change the PHP version running in your server this isn't for you.
This problem is related to a composer configuration when you run the command "composer install" if you need to work with the configuration you already have and don't want to make changes which could lead to other problems you should:
remove the packages you already have installed which includes this configuration from composer
sudo rm -r vendor
run the command again with this flag: --ignore-platform-reqs
composer install --ignore-platform-reqs
Now composer won't perform this check anymore and you are good to go!

Hyperledger composer Redeploy Banana file

I have installed latest Hyperledger Composer 0.19. Now with new version the command "composer network update" is not available. Now I am not sure how to redeploy changes in .BNA file to the network. Can someone explain how "Composer network install" command can be used to redeploy incremental changes to .BNA file to the network
This was changed as part of the native fabric deployment support added to Composer in 0.19.0. From the 0.19.0 release notes:
This release includes a fundamental change in the way that business
networks are deployed. Business networks are now deployed within
Hyperledger Fabric 'as chaincode' meaning that the business network
(rather than Composer runtime) can be agreed by all parties and
signed, using a similar management model to non-Composer chaincode. As
a result of this, the deployment and update process has changed.
You need to use the new composer network upgrade command instead:
The commands to upgrade (update) a business network have changed and
are now:
composer network install
composer network upgrade
The following commands are no longer valid:
composer runtime install
composer network deploy
composer network update
composer network undeploy
You are correct that the commands have changed for v0.19 of composer.
For each release there is a releases document which covers the changes - so checking these when you upgrade is good.
When you first deploy your network you use the commands:
composer network install and
composer network start
and there are examples in the https://hyperledger.github.io/composer/latest/tutorials/developer-tutorial.
When you subsequently want to deploy a new version you use the commands:
composer network start and
composer network upgrade
There are examples of these in the Queries tutorial.
These new commands for Composer bring it more into line with the underlying Fabric now that it can use Native NodeJS chaincode.

Using Sagepay PHP Integration Toolkit

When I go to sagepay/demo/index.php it gives error:
Ooops!!!
Setup error: curl not loaded.
I follow instructions to install php5 etc but my server is running php7. Is this an issue?
It could be an issue with your Apache configuration with the curl module not being enabled as this is a required module for the SagePay toolkit.
You should downgrade to PHP 5.6 anyway for SagePay as their toolkit makes use of mcrypt, found in their requirements section (VspPHPKit/demo/readme.html#2) obtained from here, which according to http://php.net/manual/en/migration71.deprecated.php is deprecated in PHP 7+.
The mcrypt extension has been abandonware for nearly a decade now, and was also fairly complex to use. It has therefore been deprecated in favour of OpenSSL, where it will be removed from the core and into PECL in PHP 7.2.
"I follow instructions to install php5 etc" - which instructions are these?
You might find the demo code runs better on a server running PHP5, some of the code is pretty ancient and not compatible with php7...

Manually install Parse PHP SDK without Composer

I've got a client on a shared hosting environment (which I can't change) and I'm needing to install the Parse PHP SDK, but the host won't allow me to install the Composer package manager. Does anyone else know of a manual install method?
If you have wget/unzip available, just download latest release zip (bellow the release, this file).
Use unzip to unpack package and load it with PSR-4 autoloading (the composer's approach).
Composer isn't meant to be an installer, so you are not expected to run Composer on the production machine. What would happen if during your update process Github would be down? No new website version! And maybe also no old version.
Run Composer somewhere else, and then upload the result to the server, after you verified that everything went well.

Install the socket.io offline

When am trying to install socket.io using npm, am getting the following errors.
Recently our Indian government has blocked the access to github. So I do not currently have access to github. see the news here
So I was trying to install the socket.io offline. Downloaded the socket.io.master from here( Thanks #Vitaliy Zurian for this link
npm install socket.io.master
Even then its failed because it's fetching the dependencies from git.
so my questions are as follows
Is there a Step-by-step guide on how to install socket.io offline?
Or
Is there any alternate installer for socket.io?
As a temporary solution, you can download this library from elsewhere to your local machine, and then use the local path for installing it:
npm install /path/to/your/local/socket.io --save
For more information refer to the npm docs

Resources