PHPackages                             bshaffer/google-cloud-new-surface-fixer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. bshaffer/google-cloud-new-surface-fixer

ActiveLibrary

bshaffer/google-cloud-new-surface-fixer
=======================================

00PHP

Since Jan 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/bshaffer/google-cloud-new-surface-fixer)[ Packagist](https://packagist.org/packages/bshaffer/google-cloud-new-surface-fixer)[ RSS](/packages/bshaffer-google-cloud-new-surface-fixer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Fixer for the new Google Cloud PHP Client Surface
=================================================

[](#fixer-for-the-new-google-cloud-php-client-surface)

This repo provides a Fixer, to be used with [PHP CS Fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer), which will automatically\*\* upgrade your code to the [new Google Cloud PHP client surface](https://github.com/googleapis/google-cloud-php/discussions/5206).

\*\* this is an alpha tool and NOT recommended to use without thorough testing! It is also not guanteed by Google in any way.

Installation
------------

[](#installation)

Install the fixer:

```
composer require --dev "bshaffer/google-cloud-new-surface-fixer"
```

**NOTE**:This package relies on "friendsofphp/php-cs-fixer" v3 as a dependency, but feel free to install your own compatible version as well:

Running the fixer
-----------------

[](#running-the-fixer)

First, create a `.php-cs-fixer.google.php` in your project which will be configured to use the custom fixer:

```
