Recommend this page to a friend! |
This package provides all classes and functions to manage the contacts of a Google account. Access is via the Google Perons API with OAuth2 authentication. The following functionalities are supported: - Login and authentication to the google account - List contacts - Search in contacts - Filter contacts per conatct group (-> Label) - create / edit / delete contacts - list contact groups - create / edit / delete contact groups - assign /remove contacts to contact groups - set / remove contact photos
The package only uses the standard PHP cURL library and have no further dependencies to any other 3rd party libraries or packages.
The fact that on almost every mobile phone that runs under Android, the contacts are managed either with the Google Contacts or with a compatible app and are also automatically be synchronised with the Google account contacts (with the appropriate setting), makes this package interesting for management- and/or synchronization purposes.
A smart example of using the package is provided. This example is only intended to demonstrate the use of the package. The UI is only coded 'quick and dirty', contains no validations and should therefore only be used as a starting point for your own implementation.
Take a lock at the files - ContactList.php - ContactDetails.php - DoAction.php - GoogleLogin.php - GoogleOauth2Callback.php
The starting point is the file ´ContactList.php´
A complete documentation of the classes and a detailed description, how to create your own credential to access the google API can be found at https://github.com/Stefanius67/GContacts/wiki
This package can use any PSR-3 compliant logger. The logger is initialized with a NullLogger-object by default. The logger of your choice have to be passed to the constructor of the ´GClient´ class.
If you are not working with a PSR-3 compatible logger so far, this is a good opportunity to deal with this recommendation and may work with it in the future.
There are several more or less extensive PSR-3 packages available on the Internet.
You can also take a look at the 'XLogger' package and the associated blog 'PSR-3 logging in a PHP application' as an introduction to this topic.
Classes of Stefan Kientzler | > | PHP Google Contacts API | > | Download .zip .tar.gz | > | Support forum | > | Blog (1) | > | Latest changes |
|
Groups | Applications | Files |
Groups |
User Management | User records, authentication and session handling | View top rated classes |
Web services | Web data clipping, SOAP or XML-RPC clients and servers | View top rated classes |
PHP 7 | Classes using PHP 7 specific features | View top rated classes |
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Files |
File | Role | Description | ||
---|---|---|---|---|
secrets (1 file) | ||||
SKien (1 directory) | ||||
Vendor (1 directory) | ||||
autoloader.php | Aux. | Auxiliary script | ||
ContactDetails.php | Example | Example script | ||
ContactList.php | Example | Example script | ||
displayApiError.php | Aux. | Auxiliary script | ||
DoAction.php | Example | Example script | ||
githubwiki.xml | Data | Auxiliary data | ||
GoogleLogin.php | Example | Example script | ||
GoogleOauth2Callback.php | Example | Example script | ||
LICENSE | Lic. | License text | ||
phpstan.neon | Data | Auxiliary data | ||
readme.md | Doc. | Documentation |
Files | / | SKien | / |
File | Role | Description |
---|---|---|
GClient.php | Class | Class source |
GContact.php | Class | Class source |
GContactGroups.php | Class | Class source |
GContacts.php | Class | Class source |
GSecrets.php | Class | Class source |
MissingClientInformationException.php | Class | Class source |
MissingPropertyException.php | Class | Class source |
Files | / | Vendor | / | Psr | / | Log |
File | Role | Description |
---|---|---|
AbstractLogger.php | Class | Class source |
InvalidArgumentException.php | Class | Class source |
LoggerAwareInterface.php | Class | Class source |
LoggerAwareTrait.php | Class | Class source |
LoggerInterface.php | Class | Class source |
LoggerTrait.php | Class | Class source |
LogLevel.php | Class | Class source |
NullLogger.php | Class | Class source |
Download all files: gcontacts.tar.gz gcontacts.zip NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
|
Files |
File | Role | Description | ||
---|---|---|---|---|
secrets (1 file) | ||||
SKien (1 directory) | ||||
Vendor (1 directory) | ||||
autoloader.php | Aux. | Auxiliary script | ||
ContactDetails.php | Example | Example script | ||
ContactList.php | Example | Example script | ||
displayApiError.php | Aux. | Auxiliary script | ||
DoAction.php | Example | Example script | ||
githubwiki.xml | Data | Auxiliary data | ||
GoogleLogin.php | Example | Example script | ||
GoogleOauth2Callback.php | Example | Example script | ||
LICENSE | Lic. | License text | ||
phpstan.neon | Data | Auxiliary data | ||
readme.md | Doc. | Documentation |
Files | / | SKien | / |
File | Role | Description |
---|---|---|
GClient.php | Class | Class source |
GContact.php | Class | Class source |
GContactGroups.php | Class | Class source |
GContacts.php | Class | Class source |
GSecrets.php | Class | Class source |
MissingClientInformationException.php | Class | Class source |
MissingPropertyException.php | Class | Class source |
Files | / | Vendor | / | Psr | / | Log |
File | Role | Description |
---|---|---|
AbstractLogger.php | Class | Class source |
InvalidArgumentException.php | Class | Class source |
LoggerAwareInterface.php | Class | Class source |
LoggerAwareTrait.php | Class | Class source |
LoggerInterface.php | Class | Class source |
LoggerTrait.php | Class | Class source |
LogLevel.php | Class | Class source |
NullLogger.php | Class | Class source |
Download all files: gcontacts.tar.gz gcontacts.zip NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
|