Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ricardomrcruz/php_google_search_console_api_client
Elevate your PHP applications by effortlessly integrating Google services with this Google Search Console API Client. Designed for seamless connectivity with Google APIs, it facilitates comprehensive data exchange and features an XML data parser. Dedicated mainly to Laravel, Symfony, Wordpress and Prestashop developers.
https://github.com/ricardomrcruz/php_google_search_console_api_client
api-client cms-module google-analytics google-api-client google-developers google-search-api google-search-console laravel php prestashop symfony wordpress xml-parser
Last synced: 3 months ago
JSON representation
Elevate your PHP applications by effortlessly integrating Google services with this Google Search Console API Client. Designed for seamless connectivity with Google APIs, it facilitates comprehensive data exchange and features an XML data parser. Dedicated mainly to Laravel, Symfony, Wordpress and Prestashop developers.
- Host: GitHub
- URL: https://github.com/ricardomrcruz/php_google_search_console_api_client
- Owner: ricardomrcruz
- Created: 2024-03-28T22:04:23.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-15T22:56:23.000Z (9 months ago)
- Last Synced: 2024-10-10T00:41:03.591Z (3 months ago)
- Topics: api-client, cms-module, google-analytics, google-api-client, google-developers, google-search-api, google-search-console, laravel, php, prestashop, symfony, wordpress, xml-parser
- Language: PHP
- Homepage:
- Size: 1.96 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![googleclient_api_php.png](googleclient_api_php.png)
# PHP Google Search Console API Client & XML Data Parser
Elevate your PHP applications by effortlessly integrating Google services with this client. Designed for easy integration with Google API services, this PHP-based Google Search Console API Client and XML data parser simplifies the incorporation of Google web services into applications.
With seamless connectivity and comprehensive data exchange capabilities, it facilitates parsing SEO data from Google Search Console into XML format, enabling straightforward cross-server access.
Ideal for developers working with frameworks like Laravel, Symfony, WordPress, and PrestaShop, this versatile tool empowers users to access Google APIs with ease and obtain essential insights such as click numbers, position rankings, click-through rates, and impactful keywords for their websites and projects.
## Getting Started
Follow these steps to set up the script in your PHP environment, including cloning the repository and installing dependencies.
### Prerequisites
Ensure PHP and Composer are installed on your server and machine. These are vital for dependency management and script execution.
- PHP: [Installation Guide](https://www.php.net/manual/en/install.php)
- Composer: [Getting Started Guide](https://getcomposer.org/doc/00-intro.md)### Cloning the Repository
Clone the repository to your machine or server:
```bash
git clone https://github.com/ricardomrcruz/PHP_Google_API_Client.git
cd PHP_Google_API_Client
```### Installing Dependencies
After cloning, install PHP dependencies with:
```bash
composer require google/apiclient:^2.0
```For specific dependency versions, use the project's `composer.lock`:
```bash
composer install
```To update dependencies:
```bash
composer update
```**Note:** Commit your `composer.lock` to version control to synchronize dependency versions across environments.
### Configuring Google Client
Set up your Google Client:
1. Visit the [Google Developers Console](https://console.developers.google.com/).
2. Create or select a project.
3. Under "Credentials", create your project's credentials (e.g., OAuth 2.0 Client IDs).
4. Enable necessary APIs via the "Library" page. Specifically, add the Google Search Console API.
5. Configure your OAuth 2.0 Client ID credentials with appropriate domains and redirect URLs.
6. Download the client ID JSON file and upload it to your project folder.
7. Delete the refresh access token that comes with the repository. Enter your query URL. Confirm your Google identity and watch your new refresh token get added to the project automatically.These additional steps ensure that your Google Client is fully configured and ready to use within your project. They also guide you through the process of handling authentication and obtaining the necessary credentials for accessing Google APIs.
### API Scopes
Include the correct scopes in your authentication flow as per the [Google Identity Platform documentation](https://developers.google.com/identity/protocols/oauth2/scopes).
### Additional Information
For troubleshooting, contribution guidelines, or license information, feel free to add relevant sections.
---
#### Developed by Ricardo Martinho 2024. Courtesy of [Strasbourg Web Solutions](https://strasbourgwebsolutions.fr) | Open Source 4 Life