Idiomatic PHP client for Google Compute.

Overview

Google Compute for PHP

Idiomatic PHP client for Google Compute.

Latest Stable Version Packagist

NOTE: This repository is part of Google Cloud PHP. Any support requests, bug reports, or development contributions should be directed to that project.

Allows you to create, manage, share and query data.

Installation

To begin, install the preferred dependency manager for PHP, Composer.

Now to install just this component:

$ composer require google/cloud-compute

Or to install the entire suite of components at once:

$ composer require google/cloud

Authentication

Please see our Authentication guide for more information on authenticating your client. Once authenticated, you'll be ready to start making requests.

Sample

require 'vendor/autoload.php';

use Google\Cloud\Compute\V1\InstancesClient;

$instances = new InstancesClient();
foreach ($instances->list_('[MY_PROJECT_ID]', 'us-west1') as $instance) {
    print($instance->getName() . PHP_EOL);
}

Version

This component is considered GA (generally available). As such, it will not introduce backwards-incompatible changes in any minor or patch releases. We will address issues and requests with the highest priority.

Next Steps

  1. Understand the official documentation.
  2. Take a look at in-depth usage samples.
Comments
  • Configure Renovate

    Configure Renovate

    WhiteSource Renovate

    Welcome to Renovate! This is an onboarding PR to help you understand and configure settings before regular Pull Requests begin.

    🚦 To activate Renovate, merge this Pull Request. To disable Renovate, simply close this Pull Request unmerged.


    Detected Package Files

    • composer.json (composer)

    Configuration Summary

    Based on the default config's presets, Renovate will:

    • Start dependency updates only once this onboarding PR is merged
    • Separate major versions of dependencies into individual branches/PRs
    • Do not separate patch and minor upgrades into separate PRs for the same dependency
    • Upgrade to unstable versions only if the existing version is unstable
    • Raise PRs immediately (after branch is created)
    • If semantic commits detected, use semantic commit type fix for dependencies and chore for all others
    • Keep existing branches updated even when not scheduled
    • Disable automerging feature - wait for humans to merge all PRs
    • Ignore node_modules, bower_components, vendor and various test/tests directories
    • Autodetect whether to pin dependencies or maintain ranges
    • Rate limit PR creation to a maximum of two per hour
    • Limit to maximum 20 open PRs at any time
    • Group known monorepo packages together
    • Use curated list of recommended non-monorepo package groupings
    • Ignore spring cloud 1.x releases
    • Ignore http4s digest-based 1.x milestones
    • Use node versioning for @types/node
    • Limit concurrent requests to reduce load on Repology servers until we can fix this properly, see issue 10133

    🔡 Would you like to change the way Renovate is upgrading your dependencies? Simply edit the renovate.json in this branch with your custom config and the list of Pull Requests in the "What to Expect" section below will be updated the next time Renovate runs.


    What to Expect

    With your current configuration, Renovate will create 2 Pull Requests:

    chore(deps): pin dependencies
    chore(deps): update dependency phpdocumentor/reflection to v4
    • Schedule: ["at any time"]
    • Branch name: renovate/phpdocumentor-reflection-4.x
    • Merge into: main
    • Upgrade phpdocumentor/reflection to 4.0.1

    ❓ Got questions? Check out Renovate's Docs, particularly the Getting Started section. If you need any further assistance then you can also request help here.


    This PR has been generated by WhiteSource Renovate. View repository job log here.

    kokoro:force-run cla: yes 
    opened by renovate-bot 1
  • fix(compute): revert proto3_optional, required removal on parent_id (#714)

    fix(compute): revert proto3_optional, required removal on parent_id (#714)

    • [ ] Regenerate this pull request now.

    Source-Link: https://github.com/googleapis/googleapis/commit/6b3fdcea8bc5398be4e7e9930c693f0ea09316a0

    Source-Link: https://github.com/googleapis/googleapis-gen/commit/832dbe998878d8619d6b40fe57c6d2cc6e7dc90c Copy-Tag: eyJwIjoiLk93bEJvdC55YW1sIiwiaCI6IjgzMmRiZTk5ODg3OGQ4NjE5ZDZiNDBmZTU3YzZkMmNjNmU3ZGM5MGMifQ==

    fix(compute): remove proto3_optional from parent_id (#712) Source-Link: https://github.com/googleapis/googleapis/commit/fd16b6a2379e37089a2877d0b320e3d4f293ef0e

    Source-Link: https://github.com/googleapis/googleapis-gen/commit/d935b9847a1b708ab4e696320ba60ce0341c5d7a Copy-Tag: eyJwIjoiLk93bEJvdC55YW1sIiwiaCI6ImQ5MzViOTg0N2ExYjcwOGFiNGU2OTYzMjBiYTYwY2UwMzQxYzVkN2EifQ==

    fix(compute): replace missing REQUIRED for parent_id (#711) Source-Link: https://github.com/googleapis/googleapis/commit/4bb6fd659f4edcc7df980f7387c96a49cf556289

    Source-Link: https://github.com/googleapis/googleapis-gen/commit/c7d06533be6e2470e36b9f351ae4ff479a47dc53 Copy-Tag: eyJwIjoiLk93bEJvdC55YW1sIiwiaCI6ImM3ZDA2NTMzYmU2ZTI0NzBlMzZiOWYzNTFhZTRmZjQ3OWE0N2RjNTMifQ==

    feat: update compute API to revision 20220322 (#710) Source-Link: https://github.com/googleapis/googleapis/commit/68ad73b682843a999107f30d18ac42d13593a31a

    Source-Link: https://github.com/googleapis/googleapis-gen/commit/a581672061b9481c0192de03bbfa3464e0233811 Copy-Tag: eyJwIjoiLk93bEJvdC55YW1sIiwiaCI6ImE1ODE2NzIwNjFiOTQ4MWMwMTkyZGUwM2JiZmEzNDY0ZTAyMzM4MTEifQ==

    feat: [Compute] update compute API to revision 20220112 (#700) Source-Link: https://github.com/googleapis/googleapis/commit/249e9a119d24a5cbda66e4f8a2063bf515dae9c0

    Source-Link: https://github.com/googleapis/googleapis-gen/commit/1f2c41bbfe097616ceb1e9fb67872a6bb1dc59d4 Copy-Tag: eyJwIjoiLk93bEJvdC55YW1sIiwiaCI6IjFmMmM0MWJiZmUwOTc2MTZjZWIxZTlmYjY3ODcyYTZiYjFkYzU5ZDQifQ==

    kokoro:force-run api: compute owl-bot-copy 
    opened by gcf-owl-bot[bot] 0
  • Your .repo-metadata.json file has a problem 🤒

    Your .repo-metadata.json file has a problem 🤒

    You have a problem with your .repo-metadata.json file:

    Result of scan 📈:

    • release_level must be equal to one of the allowed values in .repo-metadata.json
    • api_shortname field missing from .repo-metadata.json

    ☝️ Once you address these problems, you can close this issue.

    Need help?

    • Schema definition: lists valid options for each field.
    • API index: for gRPC libraries api_shortname should match the subdomain of an API's hostName.
    • Reach out to go/github-automation if you have any questions.
    type: process repo-metadata: lint 
    opened by repo-metadata-lint[bot] 0
  • feat: Update gapic-generator-php to v1.3.0

    feat: Update gapic-generator-php to v1.3.0

    • [ ] Regenerate this pull request now.

    Changes include:

    • diregapic: generate string constants for enum names
    • bazel: update composer to version 2.1.14 from 2.1.5

    PiperOrigin-RevId: 419853091

    Source-Link: https://github.com/googleapis/googleapis/commit/82c132fbb5728b38781b48d78e5c56a7076b5f81

    Source-Link: https://github.com/googleapis/googleapis-gen/commit/acaa4246325eb657e3e008286048938c9f265b01 Copy-Tag: eyJwIjoiLk93bEJvdC55YW1sIiwiaCI6ImFjYWE0MjQ2MzI1ZWI2NTdlM2UwMDgyODYwNDg5MzhjOWYyNjViMDEifQ==

    kokoro:force-run owl-bot-copy 
    opened by gcf-owl-bot[bot] 0
  • feat: update client libraries to support Database operations

    feat: update client libraries to support Database operations

    • [ ] Regenerate this pull request now.

    PiperOrigin-RevId: 419710013

    Source-Link: https://github.com/googleapis/googleapis/commit/b7c9d05c60f87c05c8701e67c6ef24699846a42d

    Source-Link: https://github.com/googleapis/googleapis-gen/commit/ae498279c4e71cd4aa6e0655e92a693df97472c4 Copy-Tag: eyJwIjoiLk93bEJvdC55YW1sIiwiaCI6ImFlNDk4Mjc5YzRlNzFjZDRhYTZlMDY1NWU5MmE2OTNkZjk3NDcyYzQifQ==

    kokoro:force-run owl-bot-copy 
    opened by gcf-owl-bot[bot] 0
  • [Policy Bot] found one or more issues with this repository.

    [Policy Bot] found one or more issues with this repository.

    Policy Bot found one or more issues with this repository.

    • [x] Default branch is 'main'
    • [ ] Branch protection is enabled
    • [ ] Renovate bot is enabled
    • [x] Merge commits disabled
    • [ ] There is a CODEOWNERS file
    • [x] GitHub detects a valid LICENSE.md
    • [x] There is a CODE_OF_CONDUCT.md
    • [x] There is a CONTRIBUTING.md
    • [x] There is a SECURITY.md
    type: process policybot 
    opened by google-cloud-policy-bot[bot] 0
Releases(v1.6.0)
Owner
Google APIs
Clients for Google APIs and tools that help produce them.
Google APIs
Idiomatic PHP client for Memorystore for Memcached.

Memorystore for Memcached for PHP Idiomatic PHP client for Memorystore for Memcached. API documentation NOTE: This repository is part of Google Cloud

Google APIs 1 Mar 20, 2022
PHP Protobuf - Google's Protocol Buffers for PHP

This repository is no longer maintained Since Google's official Protocol Buffers supports PHP language, it's unjustifiable to maintain this project. P

Allegro Tech 912 Dec 16, 2022
Connect Nios4 with Google Calendar via PHP

Nios4_Google_Calendar Connect Nios4 with Google Calendar via PHP ISTRUZIONI INTEGRAZIONE GOOGLE CALENDAR CON NIOS4. Guida per l'integrazione del calen

null 2 Sep 23, 2021
Lumen on Docker - Skeleton project with Nginx, MySQL & PHP 8 | Aws ECS, Google Kubernates, Azure Container Engine

Docker infrastructure for Lumen Description Microservice Lumen is a starting skeleton based on Docker and Lumen Framework. This project helps to devel

Fabrizio Cafolla 218 Sep 25, 2022
Google Search Results PHP API via Serp Api

Google Search Results in PHP This Php API is meant to scrape and parse Google, Bing or Baidu results using SerpApi. The full documentation is availabl

SerpApi 42 Nov 14, 2022
A collection of samples that demonstrate how to call Google Cloud services from PHP.

PHP Docs Samples A collection of samples that demonstrate how to call Google Cloud services from PHP. See our other Google Cloud Platform github repos

Google Cloud Platform 875 Dec 29, 2022
A collection of samples that demonstrate how to call Google Cloud services from PHP.

PHP Docs Samples A collection of samples that demonstrate how to call Google Cloud services from PHP. See our other Google Cloud Platform github repos

Google Cloud Platform 796 Dec 22, 2021
Google Cloud Storage for PHP

Google Cloud Storage for PHP Idiomatic PHP client for Cloud Storage. API documentation NOTE: This repository is part of Google Cloud PHP. Any support

Google APIs 281 Nov 10, 2022
Google Cloud Orchestration Airflow for PHP

Google Cloud Orchestration Airflow for PHP Idiomatic PHP client for Google Cloud Orchestration Airflow. API documentation NOTE: This repository is par

Google APIs 1 Apr 28, 2022
Google Cloud Optimization for PHP

Google Cloud Optimization for PHP Idiomatic PHP client for Google Cloud Optimization. API documentation NOTE: This repository is part of Google Cloud

Google APIs 0 Sep 2, 2022
Google Cloud Essential Contacts for PHP

Google Cloud Essential Contacts for PHP Idiomatic PHP client for Google Cloud Essential Contacts. API documentation NOTE: This repository is part of G

Google APIs 1 Apr 28, 2022
Google Cloud Eventarc Publishing for PHP

Google Cloud Eventarc Publishing for PHP Idiomatic PHP client for Google Cloud Eventarc Publishing. API documentation NOTE: This repository is part of

Google APIs 0 Apr 28, 2022
Google Cloud Database Migration Service for PHP

Google Cloud Database Migration Service for PHP Idiomatic PHP client for Google Cloud Database Migration Service. API documentation NOTE: This reposit

Google APIs 1 Apr 30, 2022
PHP scraper to get data from Google Play

nelexa/google-play-scraper PHP library to scrape application data from the Google Play store. Checking the exists of the app on Google Play. Retrievin

Pisarev Alexey 57 Dec 20, 2022
:passport_control: Helper for Google's new noCAPTCHA (reCAPTCHA v2 & v3)

noCAPTCHA (new reCAPTCHA) By ARCANEDEV© What is reCAPTCHA? reCAPTCHA is a free service that protects your site from spam and abuse. It uses advanced r

ARCANEDEV 342 Dec 30, 2022
Adds a header to every response to try and twart Google's usage of your site in it's FLoC tracking method.

Laravel No FLoC This package will add the Permissions-Policy: interest-cohort=() to try and twart Google's usage of your site in it's FLoC tracking me

Jean-Philippe Murray 11 Jul 14, 2022
Get mobile app version and other related data from Google Play Store, Apple App Store and Huawei AppGallery

Mobile App Version Get mobile app version and other related data from Google Play Store, Apple App Store and Huawei AppGallery. Installation Add to co

Omer Salaj 11 Mar 15, 2022
Google-like values converter

Google-like values converter. Support for different types of conversions, for examples: 1 kilometer -> meters 1 dollar -> THB 1 kilogram -> meters ...

Pavinthan 1 Nov 4, 2021
Swap Google Fonts Display

Swap Google Fonts Display

FlyingWeb Solutions 2 May 17, 2022