Skip to content

Releases: googleapis/google-cloud-php

Google Cloud PHP v0.11.0

13 Oct 18:49
Compare
Choose a tag to compare

Google Cloud PHP v0.11.0

This release includes a number of backwards-compatibility breaks. Please read
the release notes carefully if you are using Google Cloud Datastore or Google
Cloud Pub/Sub in your application. BC breaks are denoted by the prefix
BREAKING CHANGE.

What's New?

  • Incoming PubSub messages are now represented as an instance of
    Google\Cloud\PubSub\Message rather than as a simple array. (#168)
  • Google\Cloud\PubSub\PubSubClient::consume() has been added to facilitate the
    conversion of messages send via Push Delivery to an instance of
    Google\Cloud\PubSub\Message. (#168)
  • Datastore batch lookups now support sorting entities in the found result to
    match the order in which keys were supplied. Set $options['sort'] to true
    to enable sorting. (#189)
  • Datastore Queries now support Keys-Only queries by calling the keysOnly()
    method on Google\Cloud\Datastore\Query\Query. (#189)
  • Datastore Queries now offer simpler support for ancestor filters. We've added
    Google\Cloud\Datastore\Query\Query::hasAncestor(Key $key) to facilitate
    filtering by ancestor key. (#189)

What's Updated?

Pub/Sub

  • BREAKING CHANGE
    Google\Cloud\PubSub\Subscription::pull() now returns
    Generator<Google\Cloud\PubSub\Message>. (#168)
  • BREAKING CHANGE
    Google\Cloud\PubSub\Subscription::acknowledge() and Google\Cloud\PubSub\Subscription::modifyAckDeadline()now accept an instance ofGoogle\Cloud\PubSub\Message` as their first argument. (#168)
  • BREAKING CHANGE
    Google\Cloud\PubSub\Subscription::acknowledgeBatch() and
    Google\Cloud\PubSub\Subscription::modifyAckDeadlineBatch() now accept
    Google\Cloud\PubSub\Message[] as their first argument. (#168)
  • BREAKING CHANGE Incoming message data is now
    decoded internally. There is no need to call base64_decode() to read the
    message data. (#168)
  • BREAKING CHANGE The constructor signatures for
    Google\Cloud\PubSub\Subscription and Google\Cloud\PubSub\Topic have
    changed. If you are directly instantiating these classes, please update your
    code to use Google\Cloud\PubSub\PubSubClient::topic(),
    Google\Cloud\PubSub\PubSubClient::subscription() or
    Google\Cloud\PubSub\Topic::subscription() as required. (#168)

Datastore

  • BREAKING CHANGE
    The signatures of Google\Cloud\Datastore\Key::ancestor() and
    Google\Cloud\Datastore\Key::pathElement() have changed. If you
    need to specify an identifierType, it must not be done as a member of
    $options. (#189)
  • BREAKING CHANGE The signature of
    Google\Cloud\Datastore\DatastoreClient::query() has changed. Query objects
    are now provided as the first argument, rather than as a member of $options,
    which has been removed. (#189)

What's Fixed?

  • A bug preventing Google\Cloud\Storage\Bucket::object() from working properly
    with customer supplied encryption keys has been fixed. (#202)

Google Cloud PHP v0.10.2

11 Oct 17:59
Compare
Choose a tag to compare

Google Cloud PHP v0.10.2

What's New?

  • Added Google\Cloud\Storage\StorageObject::downloadAsStream() to download a
    file from Google Cloud Storage and return it as a stream. (#199)

What's Fixed?

  • Datastore Queries now respect limits and cursors, and will only auto-page
    when encountering a NOT_FINISHED query response. (#200)
  • Datastore now respects existing meaning values on entity properties, and
    will properly persist and represent them on update and lookup/query
    operations. (#194)
  • Improved Datastore property value type mapping. If an unknown type is
    encountered, the library will throw a RuntimeException. This should only
    happen if new types are added to Google Cloud Datastore, and will indicate to
    the user that an update to Google Cloud PHP may be required. (#194)

Thank You's

  • Hat tip to @Ged15 for the additions to our implementation of Google Cloud
    Storage.

Google Cloud PHP v0.10.1

08 Oct 13:57
Compare
Choose a tag to compare

Google Cloud PHP v0.10.1

What's Fixed?

  • Incorrect projection path in Datastore Query Builder has been fixed. (#188)
  • Mistake in Query order constants has been fixed. (#191)
  • Bug preventing source code links in official documentation has been fixed. (#197)

Google Cloud PHP v0.10.0

05 Oct 15:20
Compare
Choose a tag to compare

Google Cloud PHP v0.10.0

What's New?

  • Google Cloud Storage now includes several new methods: Bucket::compose(),
    StorageObject::rewrite() and StorageObject::rename() which enable you to
    better manage your storage objects. (#169)
  • Google Cloud Storage now offers the ability to use user-supplied encryption
    keys. (#169)
  • Google Cloud Datastore now supports the
    Datastore Emulator,
    which can be enabled by setting the environment variable
    DATASTORE_EMULATOR_HOST. (#181)

What's Fixed?

  • Datastore no longer sets readConsistency to EVENTUAL on lookups and queries.
    Instead, Datastore allows the API to determine the best option. Users may still
    choose one or the other as before. (#174 and #184)
  • The documentation in Datastore has been updated to be more in line with other
    google-cloud libraries in reference to Keys. Where we formerly referred to keys
    with a complete path as "complete keys", we now use the term "named keys". (#182)

Google Cloud PHP v0.9.0

26 Sep 16:13
Compare
Choose a tag to compare

Google Cloud PHP v0.9.0

What's New?

  • Google Cloud Datastore's Transaction class now includes a rollback() method.
  • Google Stackdriver Logging's Logger class now includes an entries() method.

What's Fixed?

  • Datastore Entities without properties were raising an error. This has been fixed.
  • API Exceptions (exceptions extending Google\Cloud\Exception\ServiceException)
    will now return the full message instead of the truncated response given by Guzzle.

Shout Outs

  • Thanks to @adhiravishankar for fixing a bug in Datastore.
  • Thanks to @layoaster for bringing the lack of rollback() in transactions to
    our attention.

Google Cloud PHP v0.8.0

09 Sep 14:47
Compare
Choose a tag to compare

Google Cloud PHP v0.8.0

What's New?

  • Added support for Google Cloud Speech. Cloud Speech allows you to take advantage of Google's advanced machine learning to convert spoken word to text.
  • Google\Cloud\Storage\Object now has a copy() method allowing you to create a copy of an object in Google Cloud Storage.

What's Updated?

  • BREAKING CHANGE Google\Cloud\Storage\Object has been renamed Google\Cloud\Storage\StorageObject.
  • BREAKING CHANGE Google\Cloud\Vision\VisionClient::annotateBatch() now returns Google\Cloud\Vision\Annotation[] rather than a Generator.

Shout-Outs

  • Thanks to @adhiravishankar for reminding us that Object has been "reserved" in PHP 7.

Google Cloud PHP v0.7.1

05 Sep 14:22
Compare
Choose a tag to compare

Google Cloud PHP v0.7.1

What's Updated?

  • Cloud Datastore now offers better support for blobValues. We've added a class called Blob that you can use with a string, resource, or StreamInterface to better support blobs. You can still insert blobs into Datastore using a resource, but when executing lookups or queries, blobs will be returned as an instance of Blob.
  • DatastoreClient now includes two new factory methods: geoPoint($latitude, $longitude) : GeoPoint and blob() : Blob.

What's Fixed?

  • Bug in EntityMapper which prevented excluded indexes from mapping correctly has been fixed. (h/t @adhiravishankar)

Google Cloud PHP v0.7.0

31 Aug 22:17
Compare
Choose a tag to compare

Google Cloud PHP v0.7.0

What's New?

  • Google Cloud PHP now supports Google Cloud Datastore. Cloud Datastore is a highly-scalable NoSQL database for your application.
  • Introducing support for Google Translate API. Translate allows you to dynamically translate between thousands of available language pairs. Language detection is also available In cases where the source language is unknown.

What's Updated?

  • Google Cloud PHP now supports the Pub/Sub Emulator. Just start the emulator, set the environment variable PUBSUB_EMULATOR_HOST, and we'll take care of the rest.

Thank You's

  • Thanks to @kop for helping get the Pub/Sub Emulator support added to the library.
  • Thanks to @cedricziel for feedback and contributions to Datastore, several documentation fixes, and bugfixes.
  • Thanks to @adriankirchner for fixing a mistake in our documentation.

Google Cloud PHP v0.6.0

09 Aug 17:59
Compare
Choose a tag to compare

Google Cloud PHP v0.6.0

What's New?

  • Google Cloud PHP now supports Google Cloud Platform's Natural Language API. Natural Language can be used to extract information about people, places, events and more, to understand sentiment in human language, or parse intent. Natural Language is the second Machine Learning API implemented in Google Cloud PHP, following the release of Vision in v0.5.0.

What's Updated?

  • Google Cloud PHP now allows you to programmatically delete BigQuery tables, and to insert rows directly into your table one at a time, or as a batch.

v0.5.1

05 Aug 19:07
Compare
Choose a tag to compare

gcloud-php v0.5.1

What's Updated?

  • Google Cloud PHP now supports guzzlehttp/psr7 ^v1.2.

What's Fixed?

  • When no request body is specified, request handler should fall back to null rather than [].
  • Fix bug in service request in BigQuery Dataset::createTable() method.