Download the PHP
package php-gcm/php-gcm without Composer
On this page you can find all versions of the php package
php-gcm/php-gcm. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.
Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.
In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories.
In this case some credentials are needed to access such packages.
Please use the auth.json textarea to insert credentials, if a package is coming from a private repository.
You can look here for more information.
Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
To use Composer is sometimes complicated. Especially for beginners.
Composer needs much resources. Sometimes they are not available on a simple webspace.
If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Google Cloud Messaging for Android is very powerful,
but there are a lot of details to handle. This library takes care of the details and makes GCM very easy
to use with PHP.
Support
php-gcm supports the HTTP server protocol for GCM.
There is not currently support for XMPP, but implementations and pull requests for XMPP are welcome.
See #3 for more details.
php-gcm supports PHP versions >= 5.3.10. php-gcm may work on older versions of PHP, but has not been
tested on them.
Install
Composer is the easiest way to manage dependencies in your project. Create a file named composer.json with the following:
And run Composer to install php-gcm:
Latest
php-gcm follows SEMVER. If you would like to try out the latest, possibly unstable or incorrect
code, the dependency can be pointed to dev-master.
Usage
License
php-gcm is licensed under the Apache 2.0 License. See the LICENSE file for more details.
Composer command for our command line client (download client)This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free.Standard composer command
The package php-gcm/php-gcm contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.