kreait / firebase-php

Unofficial Firebase Admin SDK for PHP
https://firebase-php.readthedocs.io/
MIT License
2.27k stars 431 forks source link

composer require "kreait/firebase-php:^7.0 doesnt work as intended.| Not able to install latest version via documentation steps. #851

Closed YogeshwarDBarai closed 11 months ago

YogeshwarDBarai commented 11 months ago

Describe the bug

composer command given in the documentation i.e composer require "kreait/firebase-php:^7.0" , doesnt work as intended. Neither it installs latest version nor installs successfully.Gives Error while installing.

PHP 8.2.12 Laravel 10

@jeromegamez , I have described as much as possible. Ping me for any information you need.

Installed packages

aws/aws-crt-php                    v1.2.4   AWS Common Runtime for PHP
aws/aws-sdk-php                    3.293.1  AWS SDK for PHP - Use Amazon Web Services in your PHP project
barryvdh/laravel-debugbar          v3.9.2   PHP Debugbar integration for Laravel
barryvdh/laravel-dompdf            v2.0.1   A DOMPDF Wrapper for Laravel
braintree/braintree_php            6.15.0   Braintree PHP Client Library
brick/math                         0.11.0   Arbitrary-precision arithmetic library
composer/ca-bundle                 1.3.7    Lets you find a path to the system CA bundle, and includes a fallback to the ...   
dflydev/dot-access-data            v3.0.2   Given a deep data structure, access data by dot notation.
doctrine/cache                     2.2.0    PHP Doctrine Cache library is a popular cache implementation that supports ma...   
doctrine/dbal                      3.7.2    Powerful PHP database abstraction layer (DBAL) with many features for databas...   
doctrine/deprecations              1.1.2    A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging wit...   
doctrine/event-manager             2.0.0    The Doctrine Event Manager is a simple PHP event system that was built to be ...   
doctrine/inflector                 2.0.8    PHP Doctrine Inflector is a small library that can perform string manipulatio...   
doctrine/lexer                     3.0.0    PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Des...   
dompdf/dompdf                      v2.0.3   DOMPDF is a CSS 2.1 compliant HTML to PDF converter
dragonmantank/cron-expression      v3.3.3   CRON for PHP: Calculate the next or previous run date and determine if a CRON...   
egulias/email-validator            4.0.2    A library for validating emails against several RFCs
elastic/transport                  v8.8.0   HTTP transport PHP library for Elastic products
elasticsearch/elasticsearch        v8.11.0  PHP Client for Elasticsearch
fakerphp/faker                     v1.23.0  Faker is a PHP library that generates fake data for you.
filp/whoops                        2.15.4   php error handling for cool kids
fruitcake/php-cors                 v1.3.0   Cross-origin resource sharing library for the Symfony HttpFoundation
graham-campbell/result-type        v1.1.2   An Implementation Of The Result Type
guzzlehttp/guzzle                  7.8.0    Guzzle is a PHP HTTP client library
guzzlehttp/promises                2.0.1    Guzzle promises library
guzzlehttp/psr7                    2.6.1    PSR-7 message implementation that also provides common utility methods
guzzlehttp/uri-template            v1.0.2   A polyfill class for uri_template of PHP
hamcrest/hamcrest-php              v2.0.1   This is the PHP port of Hamcrest Matchers
hisorange/browser-detect           5.0.0    Browser & Mobile detection package for Laravel.
intervention/image                 2.7.2    Image handling and manipulation library with support for Laravel integration       
jaybizzle/crawler-detect           v1.2.116 CrawlerDetect is a PHP class for detecting bots/crawlers/spiders via the user...   
lab404/laravel-impersonate         1.7.4    Laravel Impersonate is a plugin that allows to you to authenticate as your us...   
laravel/framework                  v10.34.2 The Laravel Framework.
laravel/pint                       v1.13.6  An opinionated code formatter for PHP.
laravel/prompts                    v0.1.13
laravel/sail                       v1.26.2  Docker files for running a basic Laravel application.
laravel/sanctum                    v3.3.2   Laravel Sanctum provides a featherweight authentication system for SPAs and s...   
laravel/serializable-closure       v1.3.3   Laravel Serializable Closure provides an easy and secure way to serialize clo...   
laravel/socialite                  v5.10.0  Laravel wrapper around OAuth 1 & OAuth 2 libraries.
laravel/tinker                     v2.8.2   Powerful REPL for the Laravel framework.
laravel/ui                         v4.2.3   Laravel UI utilities and presets.
lcobucci/clock                     3.2.0    Yet another clock abstraction
lcobucci/jwt                       4.3.0    A simple library to work with JSON Web Token and JSON Web Signature
league/commonmark                  2.4.1    Highly-extensible PHP Markdown parser which fully supports the CommonMark spe...   
league/config                      v1.2.0   Define configuration arrays with strict schemas and access values with dot no...   
league/flysystem                   3.21.0   File storage abstraction for PHP
league/flysystem-aws-s3-v3         3.21.0   AWS S3 filesystem adapter for Flysystem.
league/flysystem-local             3.21.0   Local filesystem adapter for Flysystem.
league/fractal                     0.20.1   Handle the output of complex data structures ready for API output.
league/mime-type-detection         1.14.0   Mime-type detection for Flysystem
league/oauth1-client               v1.10.1  OAuth 1.0 Client Library
league/pipeline                    1.0.0    A plug and play pipeline implementation.
masterminds/html5                  2.8.1    An HTML5 parser and serializer.
matomo/device-detector             6.2.0    The Universal Device Detection library, that parses User Agents and detects d...   
maximebf/debugbar                  v1.19.1  Debug bar in the browser for php application
mobiledetect/mobiledetectlib       3.74.3   Mobile_Detect is a lightweight PHP class for detecting mobile devices. It use...   
mockery/mockery                    1.6.6    Mockery is a simple yet flexible PHP mock object framework
monolog/monolog                    3.5.0    Sends your logs to files, sockets, inboxes, databases and various web services     
mtdowling/jmespath.php             2.7.0    Declaratively specify how to extract elements from a JSON document
mustangostang/spyc                 0.6.3    A simple YAML loader/dumper class for PHP
myclabs/deep-copy                  1.11.1   Create deep copies (clones) of your objects
nesbot/carbon                      2.71.0   An API extension for DateTime that supports 281 different languages.
nette/schema                       v1.2.5   📐 Nette Schema: validating data structures against a given Schema.
nette/utils                        v4.0.3   🛠  Nette Utils: lightweight utilities for string & array manipulation, ima...      
nikic/php-parser                   v4.17.1  A PHP parser written in PHP
nunomaduro/collision               v7.10.0  Cli error handling for console/command-line PHP applications.
nunomaduro/termwind                v1.15.1  Its like Tailwind CSS, but for the console.
phar-io/manifest                   2.0.3    Component for reading phar.io manifest information from a PHP Archive (PHAR)       
phar-io/version                    3.2.1    Library for handling version information and constraints
phenx/php-font-lib                 0.5.4    A library to read, parse, export and make subsets of different types of font ...   
phenx/php-svg-lib                  0.5.0    A library to read, parse and export to PDF SVG files.
php-http/discovery                 1.19.2   Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations
php-http/httplug                   2.4.0    HTTPlug, the HTTP client abstraction for PHP
php-http/promise                   1.2.1    Promise used for asynchronous HTTP requests
phpoption/phpoption                1.9.2    Option Type for PHP
phpunit/php-code-coverage          10.1.9   Library that provides collection, processing, and rendering functionality for...   
phpunit/php-file-iterator          4.1.0    FilterIterator implementation that filters files based on a list of suffixes.      
phpunit/php-invoker                4.0.0    Invoke callables with a timeout
phpunit/php-text-template          3.0.1    Simple template engine.
phpunit/php-timer                  6.0.0    Utility class for timing
phpunit/phpunit                    10.5.0   The PHP Unit Testing framework.
psr/cache                          3.0.0    Common interface for caching libraries
psr/clock                          1.0.0    Common interface for reading the clock.
psr/container                      2.0.2    Common Container Interface (PHP FIG PSR-11)
psr/event-dispatcher               1.0.0    Standard interfaces for event handling.
psr/http-client                    1.0.3    Common interface for HTTP clients
psr/http-factory                   1.0.2    Common interfaces for PSR-7 HTTP message factories
psr/http-message                   2.0      Common interface for HTTP messages
psr/log                            3.0.0    Common interface for logging libraries
psr/simple-cache                   3.0.0    Common interfaces for simple caching
psy/psysh                          v0.11.22 An interactive shell for modern PHP.
ralouphie/getallheaders            3.0.3    A polyfill for getallheaders.
ramsey/collection                  2.0.0    A PHP library for representing and manipulating collections.
ramsey/uuid                        4.7.5    A PHP library for generating and working with universally unique identifiers ...   
rmccue/requests                    v2.0.9   A HTTP library written in PHP, for human beings.
sabberworm/php-css-parser          8.4.0    Parser for CSS Files written in PHP
sebastian/cli-parser               2.0.0    Library for parsing CLI options
sebastian/code-unit                2.0.0    Collection of value objects that represent the PHP code units
sebastian/code-unit-reverse-lookup 3.0.0    Looks up which function or method a line of code belongs to
sebastian/comparator               5.0.1    Provides the functionality to compare PHP values for equality
sebastian/complexity               3.1.0    Library for calculating the complexity of PHP code units
sebastian/diff                     5.0.3    Diff implementation
sebastian/environment              6.0.1    Provides functionality to handle HHVM/PHP environments
sebastian/exporter                 5.1.1    Provides the functionality to export PHP variables for visualization
sebastian/global-state             6.0.1    Snapshotting of global state
sebastian/lines-of-code            2.0.1    Library for counting the lines of code in PHP source code
sebastian/object-enumerator        5.0.0    Traverses array structures and object graphs to enumerate all referenced objects   
sebastian/object-reflector         3.0.0    Allows reflection of object attributes, including inherited and non-public ones    
sebastian/recursion-context        5.0.0    Provides functionality to recursively process PHP variables
sebastian/type                     4.0.0    Collection of value objects that represent the types of the PHP type system        
sebastian/version                  4.0.1    Library that helps with managing the version number of Git-hosted PHP projects     
sendgrid/php-http-client           3.14.4   HTTP REST client, simplified for PHP
sendgrid/sendgrid                  8.1.0    This library allows you to quickly and easily send emails through Twilio Send...   
spatie/backtrace                   1.5.3    A better backtrace
spatie/flare-client-php            1.4.3    Send PHP errors to Flare
spatie/ignition                    1.11.3   A beautiful error page for PHP applications.
spatie/laravel-ignition            2.3.1    A beautiful error page for Laravel applications.
spatie/laravel-newsletter          5.1.1    Manage Mailcoach and MailChimp newsletters in Laravel
spatie/laravel-package-tools       1.16.1   Tools for creating Laravel packages
starkbank/ecdsa                    0.0.5    fast openSSL-compatible implementation of the Elliptic Curve Digital Signatur...   
stripe/stripe-php                  v13.5.0  Stripe PHP Library
symfony/console                    v6.4.0   Eases the creation of beautiful and testable command line interfaces
symfony/css-selector               v6.4.0   Converts CSS selectors to XPath expressions
symfony/deprecation-contracts      v3.4.0   A generic function and convention to trigger deprecation notices
symfony/error-handler              v6.4.0   Provides tools to manage errors and ease debugging PHP code
symfony/event-dispatcher           v7.0.0   Provides tools that allow your application components to communicate with eac...   
symfony/event-dispatcher-contracts v3.4.0   Generic abstractions related to dispatching event
symfony/finder                     v6.4.0   Finds files and directories via an intuitive fluent interface
symfony/http-foundation            v6.4.0   Defines an object-oriented layer for the HTTP specification
symfony/http-kernel                v6.4.0   Provides a structured process for converting a Request into a Response
symfony/mailer                     v6.4.0   Helps sending emails
symfony/mime                       v6.4.0   Allows manipulating MIME messages
symfony/polyfill-ctype             v1.28.0  Symfony polyfill for ctype functions
symfony/polyfill-intl-grapheme     v1.28.0  Symfony polyfill for intl's grapheme_* functions
symfony/polyfill-intl-idn          v1.28.0  Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions
symfony/polyfill-intl-normalizer   v1.28.0  Symfony polyfill for intl's Normalizer class and related functions
symfony/polyfill-mbstring          v1.28.0  Symfony polyfill for the Mbstring extension
symfony/polyfill-php72             v1.28.0  Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions
symfony/polyfill-php80             v1.28.0  Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions
symfony/polyfill-php83             v1.28.0  Symfony polyfill backporting some PHP 8.3+ features to lower PHP versions
symfony/polyfill-uuid              v1.28.0  Symfony polyfill for uuid functions
symfony/process                    v6.4.0   Executes commands in sub-processes
symfony/routing                    v6.4.0   Maps an HTTP request to a set of configuration variables
symfony/service-contracts          v3.4.0   Generic abstractions related to writing services
symfony/string                     v7.0.0   Provides an object-oriented API to strings and deals with bytes, UTF-8 code p...   
symfony/translation                v6.4.0   Provides tools to internationalize your application
symfony/translation-contracts      v3.4.0   Generic abstractions related to translation
symfony/uid                        v6.4.0   Provides an object-oriented API to generate and represent UIDs
symfony/var-dumper                 v6.4.0   Provides mechanisms for walking through any arbitrary PHP variable
symfony/yaml                       v7.0.0   Loads and dumps YAML files
theseer/tokenizer                  1.2.2    A small library for converting tokenized PHP source code into XML and potenti...   
tijsverkoyen/css-to-inline-styles  2.2.6    CssToInlineStyles is a class that enables you to convert HTML-pages/files int...   
twilio/sdk                         7.12.3   A PHP wrapper for Twilio's API
tymon/jwt-auth                     2.0.0    JSON Web Token Authentication for Laravel and Lumen
ua-parser/uap-php                  v3.9.14  A multi-language port of Browserscope's user agent parser.
vlucas/phpdotenv                   v5.6.0   Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER`...   
voku/portable-ascii                2.0.1    Portable ASCII library - performance optimized (ascii) string functions for php.   
webmozart/assert                   1.11.0   Assertions to validate method input/output with nice error messages.
yajra/laravel-datatables           v10.0.0  Laravel DataTables Complete Package.
yajra/laravel-datatables-buttons   v10.0.8  Laravel DataTables Buttons Plugin.
yajra/laravel-datatables-editor    v1.25.4  Laravel DataTables Editor plugin for Laravel 5.5+.
yajra/laravel-datatables-fractal   v10.0.0  Laravel DataTables Fractal Plugin.
yajra/laravel-datatables-html      v10.11.0 Laravel DataTables HTML builder plugin for Laravel 5.4+.
yajra/laravel-datatables-oracle    v10.11.1 jQuery DataTables API for Laravel 4|5|6|7|8|9|10

PHP version and extensions

aws/aws-crt-php                    v1.2.4   AWS Common Runtime for PHP
aws/aws-sdk-php                    3.293.1  AWS SDK for PHP - Use Amazon Web Services in your PHP project
barryvdh/laravel-debugbar          v3.9.2   PHP Debugbar integration for Laravel
barryvdh/laravel-dompdf            v2.0.1   A DOMPDF Wrapper for Laravel
braintree/braintree_php            6.15.0   Braintree PHP Client Library
brick/math                         0.11.0   Arbitrary-precision arithmetic library
composer/ca-bundle                 1.3.7    Lets you find a path to the system CA bundle, and includes a fallback to the ...   
dflydev/dot-access-data            v3.0.2   Given a deep data structure, access data by dot notation.
doctrine/cache                     2.2.0    PHP Doctrine Cache library is a popular cache implementation that supports ma...   
doctrine/dbal                      3.7.2    Powerful PHP database abstraction layer (DBAL) with many features for databas...   
doctrine/deprecations              1.1.2    A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging wit...   
doctrine/event-manager             2.0.0    The Doctrine Event Manager is a simple PHP event system that was built to be ...   
doctrine/inflector                 2.0.8    PHP Doctrine Inflector is a small library that can perform string manipulatio...   
doctrine/lexer                     3.0.0    PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Des...   
dompdf/dompdf                      v2.0.3   DOMPDF is a CSS 2.1 compliant HTML to PDF converter
dragonmantank/cron-expression      v3.3.3   CRON for PHP: Calculate the next or previous run date and determine if a CRON...   
egulias/email-validator            4.0.2    A library for validating emails against several RFCs
elastic/transport                  v8.8.0   HTTP transport PHP library for Elastic products
elasticsearch/elasticsearch        v8.11.0  PHP Client for Elasticsearch
fakerphp/faker                     v1.23.0  Faker is a PHP library that generates fake data for you.
filp/whoops                        2.15.4   php error handling for cool kids
fruitcake/php-cors                 v1.3.0   Cross-origin resource sharing library for the Symfony HttpFoundation
graham-campbell/result-type        v1.1.2   An Implementation Of The Result Type
guzzlehttp/guzzle                  7.8.0    Guzzle is a PHP HTTP client library
guzzlehttp/promises                2.0.1    Guzzle promises library
guzzlehttp/psr7                    2.6.1    PSR-7 message implementation that also provides common utility methods
guzzlehttp/uri-template            v1.0.2   A polyfill class for uri_template of PHP
hamcrest/hamcrest-php              v2.0.1   This is the PHP port of Hamcrest Matchers
hisorange/browser-detect           5.0.0    Browser & Mobile detection package for Laravel.
intervention/image                 2.7.2    Image handling and manipulation library with support for Laravel integration       
jaybizzle/crawler-detect           v1.2.116 CrawlerDetect is a PHP class for detecting bots/crawlers/spiders via the user...   
lab404/laravel-impersonate         1.7.4    Laravel Impersonate is a plugin that allows to you to authenticate as your us...   
laravel/framework                  v10.34.2 The Laravel Framework.
laravel/pint                       v1.13.6  An opinionated code formatter for PHP.
laravel/prompts                    v0.1.13
laravel/sail                       v1.26.2  Docker files for running a basic Laravel application.
laravel/sanctum                    v3.3.2   Laravel Sanctum provides a featherweight authentication system for SPAs and s...   
laravel/serializable-closure       v1.3.3   Laravel Serializable Closure provides an easy and secure way to serialize clo...   
laravel/socialite                  v5.10.0  Laravel wrapper around OAuth 1 & OAuth 2 libraries.
laravel/tinker                     v2.8.2   Powerful REPL for the Laravel framework.
laravel/ui                         v4.2.3   Laravel UI utilities and presets.
lcobucci/clock                     3.2.0    Yet another clock abstraction
lcobucci/jwt                       4.3.0    A simple library to work with JSON Web Token and JSON Web Signature
league/commonmark                  2.4.1    Highly-extensible PHP Markdown parser which fully supports the CommonMark spe...   
league/config                      v1.2.0   Define configuration arrays with strict schemas and access values with dot no...   
league/flysystem                   3.21.0   File storage abstraction for PHP
league/flysystem-aws-s3-v3         3.21.0   AWS S3 filesystem adapter for Flysystem.
league/flysystem-local             3.21.0   Local filesystem adapter for Flysystem.
league/fractal                     0.20.1   Handle the output of complex data structures ready for API output.
league/mime-type-detection         1.14.0   Mime-type detection for Flysystem
league/oauth1-client               v1.10.1  OAuth 1.0 Client Library
league/pipeline                    1.0.0    A plug and play pipeline implementation.
masterminds/html5                  2.8.1    An HTML5 parser and serializer.
matomo/device-detector             6.2.0    The Universal Device Detection library, that parses User Agents and detects d...   
maximebf/debugbar                  v1.19.1  Debug bar in the browser for php application
mobiledetect/mobiledetectlib       3.74.3   Mobile_Detect is a lightweight PHP class for detecting mobile devices. It use...   
mockery/mockery                    1.6.6    Mockery is a simple yet flexible PHP mock object framework
monolog/monolog                    3.5.0    Sends your logs to files, sockets, inboxes, databases and various web services     
mtdowling/jmespath.php             2.7.0    Declaratively specify how to extract elements from a JSON document
mustangostang/spyc                 0.6.3    A simple YAML loader/dumper class for PHP
myclabs/deep-copy                  1.11.1   Create deep copies (clones) of your objects
nesbot/carbon                      2.71.0   An API extension for DateTime that supports 281 different languages.
nette/schema                       v1.2.5   📐 Nette Schema: validating data structures against a given Schema.
nette/utils                        v4.0.3   🛠  Nette Utils: lightweight utilities for string & array manipulation, ima...      
nikic/php-parser                   v4.17.1  A PHP parser written in PHP
nunomaduro/collision               v7.10.0  Cli error handling for console/command-line PHP applications.
nunomaduro/termwind                v1.15.1  Its like Tailwind CSS, but for the console.
phar-io/manifest                   2.0.3    Component for reading phar.io manifest information from a PHP Archive (PHAR)       
phar-io/version                    3.2.1    Library for handling version information and constraints
phenx/php-font-lib                 0.5.4    A library to read, parse, export and make subsets of different types of font ...   
phenx/php-svg-lib                  0.5.0    A library to read, parse and export to PDF SVG files.
php-http/discovery                 1.19.2   Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations
php-http/httplug                   2.4.0    HTTPlug, the HTTP client abstraction for PHP
php-http/promise                   1.2.1    Promise used for asynchronous HTTP requests
phpoption/phpoption                1.9.2    Option Type for PHP
phpunit/php-code-coverage          10.1.9   Library that provides collection, processing, and rendering functionality for...   
phpunit/php-file-iterator          4.1.0    FilterIterator implementation that filters files based on a list of suffixes.      
phpunit/php-invoker                4.0.0    Invoke callables with a timeout
phpunit/php-text-template          3.0.1    Simple template engine.
phpunit/php-timer                  6.0.0    Utility class for timing
phpunit/phpunit                    10.5.0   The PHP Unit Testing framework.
psr/cache                          3.0.0    Common interface for caching libraries
psr/clock                          1.0.0    Common interface for reading the clock.
psr/container                      2.0.2    Common Container Interface (PHP FIG PSR-11)
psr/event-dispatcher               1.0.0    Standard interfaces for event handling.
psr/http-client                    1.0.3    Common interface for HTTP clients
psr/http-factory                   1.0.2    Common interfaces for PSR-7 HTTP message factories
psr/http-message                   2.0      Common interface for HTTP messages
psr/log                            3.0.0    Common interface for logging libraries
psr/simple-cache                   3.0.0    Common interfaces for simple caching
psy/psysh                          v0.11.22 An interactive shell for modern PHP.
ralouphie/getallheaders            3.0.3    A polyfill for getallheaders.
ramsey/collection                  2.0.0    A PHP library for representing and manipulating collections.
ramsey/uuid                        4.7.5    A PHP library for generating and working with universally unique identifiers ...   
rmccue/requests                    v2.0.9   A HTTP library written in PHP, for human beings.
sabberworm/php-css-parser          8.4.0    Parser for CSS Files written in PHP
sebastian/cli-parser               2.0.0    Library for parsing CLI options
sebastian/code-unit                2.0.0    Collection of value objects that represent the PHP code units
sebastian/code-unit-reverse-lookup 3.0.0    Looks up which function or method a line of code belongs to
sebastian/comparator               5.0.1    Provides the functionality to compare PHP values for equality
sebastian/complexity               3.1.0    Library for calculating the complexity of PHP code units
sebastian/diff                     5.0.3    Diff implementation
sebastian/environment              6.0.1    Provides functionality to handle HHVM/PHP environments
sebastian/exporter                 5.1.1    Provides the functionality to export PHP variables for visualization
sebastian/global-state             6.0.1    Snapshotting of global state
sebastian/lines-of-code            2.0.1    Library for counting the lines of code in PHP source code
sebastian/object-enumerator        5.0.0    Traverses array structures and object graphs to enumerate all referenced objects   
sebastian/object-reflector         3.0.0    Allows reflection of object attributes, including inherited and non-public ones    
sebastian/recursion-context        5.0.0    Provides functionality to recursively process PHP variables
sebastian/type                     4.0.0    Collection of value objects that represent the types of the PHP type system        
sebastian/version                  4.0.1    Library that helps with managing the version number of Git-hosted PHP projects     
sendgrid/php-http-client           3.14.4   HTTP REST client, simplified for PHP
sendgrid/sendgrid                  8.1.0    This library allows you to quickly and easily send emails through Twilio Send...   
spatie/backtrace                   1.5.3    A better backtrace
spatie/flare-client-php            1.4.3    Send PHP errors to Flare
spatie/ignition                    1.11.3   A beautiful error page for PHP applications.
spatie/laravel-ignition            2.3.1    A beautiful error page for Laravel applications.
spatie/laravel-newsletter          5.1.1    Manage Mailcoach and MailChimp newsletters in Laravel
spatie/laravel-package-tools       1.16.1   Tools for creating Laravel packages
starkbank/ecdsa                    0.0.5    fast openSSL-compatible implementation of the Elliptic Curve Digital Signatur...   
stripe/stripe-php                  v13.5.0  Stripe PHP Library
symfony/console                    v6.4.0   Eases the creation of beautiful and testable command line interfaces
symfony/css-selector               v6.4.0   Converts CSS selectors to XPath expressions
symfony/deprecation-contracts      v3.4.0   A generic function and convention to trigger deprecation notices
symfony/error-handler              v6.4.0   Provides tools to manage errors and ease debugging PHP code
symfony/event-dispatcher           v7.0.0   Provides tools that allow your application components to communicate with eac...   
symfony/event-dispatcher-contracts v3.4.0   Generic abstractions related to dispatching event
symfony/finder                     v6.4.0   Finds files and directories via an intuitive fluent interface
symfony/http-foundation            v6.4.0   Defines an object-oriented layer for the HTTP specification
symfony/http-kernel                v6.4.0   Provides a structured process for converting a Request into a Response
symfony/mailer                     v6.4.0   Helps sending emails
symfony/mime                       v6.4.0   Allows manipulating MIME messages
symfony/polyfill-ctype             v1.28.0  Symfony polyfill for ctype functions
symfony/polyfill-intl-grapheme     v1.28.0  Symfony polyfill for intl's grapheme_* functions
symfony/polyfill-intl-idn          v1.28.0  Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions
symfony/polyfill-intl-normalizer   v1.28.0  Symfony polyfill for intl's Normalizer class and related functions
symfony/polyfill-mbstring          v1.28.0  Symfony polyfill for the Mbstring extension
symfony/polyfill-php72             v1.28.0  Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions
symfony/polyfill-php80             v1.28.0  Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions
symfony/polyfill-php83             v1.28.0  Symfony polyfill backporting some PHP 8.3+ features to lower PHP versions
symfony/polyfill-uuid              v1.28.0  Symfony polyfill for uuid functions
symfony/process                    v6.4.0   Executes commands in sub-processes
symfony/routing                    v6.4.0   Maps an HTTP request to a set of configuration variables
symfony/service-contracts          v3.4.0   Generic abstractions related to writing services
symfony/string                     v7.0.0   Provides an object-oriented API to strings and deals with bytes, UTF-8 code p...   
symfony/translation                v6.4.0   Provides tools to internationalize your application
symfony/translation-contracts      v3.4.0   Generic abstractions related to translation
symfony/uid                        v6.4.0   Provides an object-oriented API to generate and represent UIDs
symfony/var-dumper                 v6.4.0   Provides mechanisms for walking through any arbitrary PHP variable
symfony/yaml                       v7.0.0   Loads and dumps YAML files
theseer/tokenizer                  1.2.2    A small library for converting tokenized PHP source code into XML and potenti...   
tijsverkoyen/css-to-inline-styles  2.2.6    CssToInlineStyles is a class that enables you to convert HTML-pages/files int...   
twilio/sdk                         7.12.3   A PHP wrapper for Twilio's API
tymon/jwt-auth                     2.0.0    JSON Web Token Authentication for Laravel and Lumen
ua-parser/uap-php                  v3.9.14  A multi-language port of Browserscope's user agent parser.
vlucas/phpdotenv                   v5.6.0   Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER`...   
voku/portable-ascii                2.0.1    Portable ASCII library - performance optimized (ascii) string functions for php.   
webmozart/assert                   1.11.0   Assertions to validate method input/output with nice error messages.
yajra/laravel-datatables           v10.0.0  Laravel DataTables Complete Package.
yajra/laravel-datatables-buttons   v10.0.8  Laravel DataTables Buttons Plugin.
yajra/laravel-datatables-editor    v1.25.4  Laravel DataTables Editor plugin for Laravel 5.5+.
yajra/laravel-datatables-fractal   v10.0.0  Laravel DataTables Fractal Plugin.
yajra/laravel-datatables-html      v10.11.0 Laravel DataTables HTML builder plugin for Laravel 5.4+.
yajra/laravel-datatables-oracle    v10.11.1 jQuery DataTables API for Laravel 4|5|6|7|8|9|10
PS C:\xampp\htdocs\lara10Test> composer show --platform
composer               2.6.5    Composer package
composer-plugin-api    2.6.0    The Composer Plugin API
composer-runtime-api   2.2.2    The Composer Runtime API
ext-bcmath             8.2.12   The bcmath PHP extension
ext-bz2                8.2.12   The bz2 PHP extension
ext-calendar           8.2.12   The calendar PHP extension
ext-ctype              8.2.12   The ctype PHP extension
ext-curl               8.2.12   The curl PHP extension
ext-date               8.2.12   The date PHP extension
ext-dom                20031129 The dom PHP extension
ext-exif               8.2.12   The exif PHP extension
ext-fileinfo           8.2.12   The fileinfo PHP extension
ext-filter             8.2.12   The filter PHP extension
ext-ftp                8.2.12   The ftp PHP extension
ext-gettext            8.2.12   The gettext PHP extension
ext-hash               8.2.12   The hash PHP extension
ext-iconv              8.2.12   The iconv PHP extension
ext-intl               8.2.12   The intl PHP extension
ext-json               8.2.12   The json PHP extension
ext-libxml             8.2.12   The libxml PHP extension
ext-mbstring           8.2.12   The mbstring PHP extension
ext-mysqli             8.2.12   The mysqli PHP extension
ext-mysqlnd            0        The mysqlnd PHP extension (actual version: mysqlnd 8.2.12)
ext-openssl            8.2.12   The openssl PHP extension
ext-pcre               8.2.12   The pcre PHP extension
ext-pdo                8.2.12   The PDO PHP extension
ext-pdo_mysql          8.2.12   The pdo_mysql PHP extension
ext-pdo_sqlite         8.2.12   The pdo_sqlite PHP extension
ext-phar               8.2.12   The Phar PHP extension
ext-random             8.2.12   The random PHP extension
ext-readline           8.2.12   The readline PHP extension
ext-reflection         8.2.12   The Reflection PHP extension
ext-session            8.2.12   The session PHP extension
ext-simplexml          8.2.12   The SimpleXML PHP extension
ext-sodium             8.2.12   The sodium PHP extension
ext-spl                8.2.12   The SPL PHP extension
ext-tokenizer          8.2.12   The tokenizer PHP extension
ext-xml                8.2.12   The xml PHP extension
ext-xmlreader          8.2.12   The xmlreader PHP extension
ext-xmlwriter          8.2.12   The xmlwriter PHP extension
ext-zlib               8.2.12   The zlib PHP extension
lib-bz2                1.0.8    The bz2 library
lib-curl               8.4.0    The curl library
lib-curl-libssh2       1.10.0   curl libssh2 version
lib-curl-openssl       3.0.11   curl OpenSSL version (3.0.11)
lib-curl-zlib          1.2.12   curl zlib version
lib-date-timelib       2022.09  date timelib version
lib-date-zoneinfo      2023.3   zoneinfo ("Olson") database for date
lib-fileinfo-libmagic  540      fileinfo libmagic version
lib-iconv              1.16     The iconv library
lib-icu                71.1     The ICU unicode and globalization support library
lib-icu-cldr           41       ICU CLDR project version
lib-icu-unicode        14.0.0   ICU unicode version
lib-icu-zoneinfo       2022.1   zoneinfo ("Olson") database for icu
lib-libsodium          1.0.18   The libsodium library
lib-libxml             2.10.3   libxml library version
lib-mbstring-libmbfl   1.3.2    mbstring libmbfl version
lib-mbstring-oniguruma 6.9.8    mbstring oniguruma version
lib-openssl            3.0.11   OpenSSL 3.0.11 19 Sep 2023
lib-pcre               10.40    The pcre library
lib-pcre-unicode       14.0.0   PCRE Unicode version support
lib-pdo_sqlite-sqlite  3.39.2   The pdo_sqlite-sqlite library
lib-zlib               1.2.12   The zlib library
php                    8.2.12   The PHP interpreter
php-64bit              8.2.12   The PHP interpreter, 64bit
php-ipv6               8.2.12   The PHP interpreter, with IPv6 support
php-zts                8.2.12   The PHP interpreter, with Zend Thread Safety

Steps to reproduce the issue.

When using the below given command from the documentation while installing this package, it gives error as shown in image below composer require "kreait/firebase-php:^7.0"

image

When we use this command composer require --with-all-dependencies "kreait/firebase-php:^7.0" then it will install 7.0 version package. as shown below.

image

image

============

PLEASE READ

============ So far in my experimental take on this case is that while using normal composer installing command composer require kreait/firebase-php before any attempt to install the previously then it works properly and installs Latest version of the package and if you run this composer require --with-all-dependencies "kreait/firebase-php:^7.0" before any attempt of running this composer require kreait/firebase-php then it will 7.0 as shown above.

Lets say you are able to installed using this composer require --with-all-dependencies "kreait/firebase-php:^7.0" and you want latest version then you may try uninstalling via composer remove kreait/firebase-php and run this composer require kreait/firebase-php then it will installs 7.6 version. once you get this 7.6 version installed then you have to run composer update to get 7.9 or latest version of the package.

Error message/Stack trace

Error while using `composer require "kreait/firebase-php:^7.0"`

The "7.0" constraint for "kreait/firebase-php" appears too strict and will likely not match what you want. See https://getcomposer.org/constraints
./composer.json has been updated
Running composer update kreait/firebase-php
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires kreait/firebase-php 7.0 -> satisfiable by kreait/firebase-php[7.0.0].
    - kreait/firebase-php 7.0.0 requires psr/http-message ^1.0.1 -> found psr/http-message[1.0.1, 1.1] but the package is fixed to 2.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

===============================
Message while using `composer require --with-all-dependencies "kreait/firebase-php:^7.0"` 

The "7.0" constraint for "kreait/firebase-php" appears too strict and will likely not match what you want. See https://getcomposer.org/constraints
./composer.json has been updated
Running composer update kreait/firebase-php --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Lock file operations: 11 installs, 4 updates, 0 removals
  - Locking beste/clock (3.0.0)
  - Locking beste/json (1.4.0)
  - Locking fig/http-message-util (1.1.5)
  - Locking firebase/php-jwt (v6.10.0)
  - Locking google/auth (v1.33.0)
  - Locking google/cloud-core (v1.52.9)
  - Locking google/cloud-storage (v1.35.0)
  - Upgrading guzzlehttp/guzzle (7.8.0 => 7.8.1)
  - Upgrading guzzlehttp/promises (2.0.1 => 2.0.2)
  - Upgrading guzzlehttp/psr7 (2.6.1 => 2.6.2)
  - Locking kreait/firebase-php (7.0.0)
  - Locking kreait/firebase-tokens (4.3.0)
  - Downgrading psr/http-message (2.0 => 1.1)
  - Locking riverline/multipart-parser (2.1.1)
  - Locking rize/uri-template (0.3.5)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 11 installs, 4 updates, 0 removals
  - Downloading guzzlehttp/psr7 (2.6.2)
  - Downloading guzzlehttp/promises (2.0.2)
  - Downloading guzzlehttp/guzzle (7.8.1)
  - Downgrading psr/http-message (2.0 => 1.1): Extracting archive
  - Upgrading guzzlehttp/psr7 (2.6.1 => 2.6.2): Extracting archive
  - Upgrading guzzlehttp/promises (2.0.1 => 2.0.2): Extracting archive
  - Upgrading guzzlehttp/guzzle (7.8.0 => 7.8.1): Extracting archive
  - Installing riverline/multipart-parser (2.1.1): Extracting archive
  - Installing fig/http-message-util (1.1.5): Extracting archive
  - Installing beste/clock (3.0.0): Extracting archive
  - Installing kreait/firebase-tokens (4.3.0): Extracting archive
  - Installing rize/uri-template (0.3.5): Extracting archive
  - Installing firebase/php-jwt (v6.10.0): Extracting archive
  - Installing google/auth (v1.33.0): Extracting archive
  - Installing google/cloud-core (v1.52.9): Extracting archive
  - Installing google/cloud-storage (v1.35.0): Extracting archive
  - Installing beste/json (1.4.0): Extracting archive
  - Installing kreait/firebase-php (7.0.0): Extracting archive
8 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

   INFO  Discovering packages.

  barryvdh/laravel-debugbar ............................................................................................ DONE  
  barryvdh/laravel-dompdf .............................................................................................. DONE  
  hisorange/browser-detect ............................................................................................. DONE  
  intervention/image ................................................................................................... DONE  
  lab404/laravel-impersonate ........................................................................................... DONE  
  laravel/sail ......................................................................................................... DONE  
  laravel/sanctum ...................................................................................................... DONE  
  laravel/socialite .................................................................................................... DONE  
  laravel/tinker ....................................................................................................... DONE  
  laravel/ui ........................................................................................................... DONE  
  nesbot/carbon ........................................................................................................ DONE  
  nunomaduro/collision ................................................................................................. DONE  
  nunomaduro/termwind .................................................................................................. DONE  
  spatie/laravel-ignition .............................................................................................. DONE  
  spatie/laravel-newsletter ............................................................................................ DONE  
  tymon/jwt-auth ....................................................................................................... DONE  
  yajra/laravel-datatables-buttons ..................................................................................... DONE  
  yajra/laravel-datatables-editor ...................................................................................... DONE  
  yajra/laravel-datatables-fractal ..................................................................................... DONE  
  yajra/laravel-datatables-html ........................................................................................ DONE  
  yajra/laravel-datatables-oracle ...................................................................................... DONE  

106 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> @php artisan vendor:publish --tag=laravel-assets --ansi --force

   INFO  No publishable resources for tag [laravel-assets].

No security vulnerability advisories found.

Additional information

No response

jeromegamez commented 11 months ago

Your require command seems to be correct, but this line irritates me

The "7.0" constraint for "kreait/firebase-php" appears too strict and will likely not match what you want

Could you try adding the "kreait/firebase-php": "^7.9.1" to your composer.json directly and then run composer update -W?

YogeshwarDBarai commented 11 months ago

"kreait/firebase-php": "^7.9.1"

I removed the package before trying this method and below this the message I got.

Loading composer repositories with package information Updating dependencies Lock file operations: 10 installs, 0 updates, 0 removals

107 packages you are using are looking for funding. Use the composer fund command to find out more!

@php artisan vendor:publish --tag=laravel-assets --ansi --force

INFO No publishable resources for tag [laravel-assets].

No security vulnerability advisories found.

jeromegamez commented 11 months ago

Looks good, doesn't it?

jeromegamez commented 11 months ago

By the way, there's a Laravel package that you can require instead: https://github.com/kreait/laravel-firebase

YogeshwarDBarai commented 11 months ago

By the way, there's a Laravel package that you can require instead: https://github.com/kreait/laravel-firebase

Yes, I have seen that. Due to old project dependency, I am constrained. :(

YogeshwarDBarai commented 11 months ago

Looks good, doesn't it?

Yes, i hope these changes reflect on the documentation for others who may get stuck with same issue. Thank you for the support.

jeromegamez commented 11 months ago

The usage of Composer is out of scope of the SDK, though.