Tag Archives: Announcements

PHP 7.1 for Google App Engine is generally available



Earlier this year, we announced PHP 7.1 Google App Engine in beta. We PHP lovers at Google are proud to announce that PHP 7.1 is now generally available on Google App Engine, our easy-to-use platform for building, deploying, managing and automatically scaling services on Google’s infrastructure. The PHP 7.1 runtime is available for App Engine flexible environment.



Along with achieving general availability for PHP 7.1, the new PHP runtime includes a few exciting new features.

Extension enabler


The list of PHP extensions you can use with the App Engine runtime now includes any PHP extension that is stable (1.0 and above) and does not require a EULA. You can find a complete list on the PHP runtime page.

This is great news, but to make it even better you can now quickly and easily activate any of these extensions in your deployment by requiring them with Composer.

composer require "ext-gd:*" --ignore-platform-reqs

This is equivalent to adding the name of the extension, prefixed with “ext-”, to your application’s composer.json:
{
    "require": {
        "ext-gd": "*"
    }
}

You can still install a custom extension or a specific version of a supported extension, but this will require extending the PHP runtime.

Stackdriver Logging and Error Reporting support


Logging to Stackdriver from your PHP application is very simple. The first requirement is to install the Composer package google/cloud version 0.33 or higher.

composer require google/cloud

Now set enable_stackdriver_integration to true in the runtime_config section of app.yaml:

runtime_config:
  enable_stackdriver_integration: true

This configuration tells the PHP runtime to dispatch the batch-processing daemon to handle your logs behind the scenes. This ensures that when your application writes a log, calls to the Stackdriver API happen in another process so as not to add latency to your application.
Now you can create a PsrBatchLogger instance in your code and log to Stackdriver:

use Google\Cloud\Logging\LoggingClient;
use Psr\Log\LogLevel;

$batchLogger = LoggingClient::psrBatchLogger('app'); // logName `app`

// You now have a PSR-3 compliant logger!

$batchLogger->log(LogLevel::DEBUG, 'This is a debug log');
$batchLogger->debug('This is a debug log'); // The same thing

Additionally, the enable_stackdriver_integration flag sets up an auto-prepend file for error reporting. This means uncaught exceptions and fatal errors are formatted and visible in Cloud Console Error Reporting!

throw new \Exception('Uncaught exceptions are logged to Stackdriver!');


$obj->thisDoesNotExist(); // Fatal errors are also logged to Stackdriver!

If you’d rather use individual Google Cloud packages, ensure you have both google/cloud-logging and google/cloud-error-reporting installed. When installing locally, use --ignore-platform-reqs or install gRPC according to the installation instructions.


composer require google/cloud-logging google/cloud-error-reporting \

    "ext-grpc:*" --ignore-platform-reqs

Stackdriver Logging for Laravel

After you’ve configured the enable_stackdriver_integration, you can enable Stackdriver integration in an app based on the Laravel PHP framework by modifying bootstrap/app.php:

// Add `Use` for logging libs
use Google\Cloud\Logging\LoggingClient;
use Monolog\Handler\PsrHandler;

// ... other code

// Just before returning $app
if (isset($_SERVER['GAE_SERVICE'])) {
    $app->configureMonologUsing(function ($monolog) {
        $logger = LoggingClient::psrBatchLogger('app');
        $handler = new PsrHandler($logger);
        $monolog->pushHandler($handler);
    });
}

return $app;

For Error Reporting, add an import and call our `exceptionHandler` in the `report` function in `app/Exceptions/Handler.php`:


use Google\Cloud\ErrorReporting\Bootstrap;

// .. other code
    public function report(Exception $exception)
    {
        if (isset($_SERVER['GAE_SERVICE'])) {
            Bootstrap::exceptionHandler($exception);<
        } else {
            parent::report($exception);
        }
    }

That's it! The logs are sent to Stackdriver Logging with the logName 'app'. Unhandled exceptions are sent to the logName 'app-error', and will show up in Stackdriver Error Reporting.

gRPC Support

Google’s highly performant RPC protocol gRPC is built right into the PHP runtime. This allows you to quickly get started making calls to Cloud Spanner and other gRPC-specific APIs. You can enable the extension in composer.json and download the client library:

composer require "ext-grpc:*" google/cloud-spanner --ignore-platform-reqs

Now you can make calls to Spanner in your application:

<?php
// index.php

require __DIR__ . '/vendor/autoload.php';

$spanner = new Google\Cloud\Spanner\SpannerClient();
$instance = $spanner->instance('YOUR_INSTANCE_ID');
$database = $instance->database('YOUR_DATABASE_ID');

# Execute a simple SQL statement.
echo $database->execute('SELECT "Hello Spanner" as test');

By replacing YOUR_INSTANCE_ID and YOUR_DATABASE_ID with the proper values, your application now displays the text “Hello Spanner”!

Our commitment to PHP and open source

At Google, we’re committed to open source -- and that goes for the new core PHP Docker runtime, google-cloud composer package and Google API client:


We’re thrilled to welcome PHP developers to Google Cloud Platform, and we’re invested in making you as productive as possible. This is just the start -- stay tuned to the blog and our GitHub repositories to catch the next wave of PHP support on GCP.

We can’t wait to hear from you. Feel free to reach out to us on Twitter, or request an invite to the Google Cloud Slack community and join the #PHP channel.

Google Summer of Code turns 14

Google Open Source is proud to announce the 14th year of Google Summer of Code (GSoC)! Yes, GSoC is officially well into its teenage years - hopefully without that painful awkward stage - and we are excited to introduce more new student developers to the world of open source software development.

Over the last 13 years GSoC has provided over 13,000 university students from around the world with an opportunity to hone their skills by contributing to open source projects during their summer break. Participants gain invaluable experience working directly with mentors on open source projects, and earn a stipend upon successful completion of their project.

We’re excited to keep the tradition going! Applications for interested open source organizations open on January 4, 2018 and student applications open in March*.

Are you an open source project interesting in learning more? Visit the program site to learn about what it means to be a mentor organization and how to submit a good application. We welcome all types of organizations - both large and small - and each year about 20% of the organizations we accept are completely new to GSoC.

Students, it’s never too early to start thinking about your proposal. You can check out the organizations that participated in Google Summer of Code 2017 as well as the projects students worked on. We also encourage you to explore other resources like the student and mentor guides and frequently asked questions.

You can always learn more on the program website. Please stay tuned for more details!

By Mary Radomile, Google Open Source

* Exact dates will be announced later this year.

New: Streaming Google Analytics Data for BigQuery

Streaming data for BigQuery export is here.

Today we're happy to announce that data for the Google Analytics BigQuery export can be streamed as often as every 10 minutes into Google Cloud.

If you're a Google Analytics 360 client who wants to do current-day analysis, this means you can choose to send data to BigQuery up to six times per hour for almost real-time analysis and action. That’s a 48x improvement over the existing three-times-per-day exports.

What can I do with streaming data delivery?
Many businesses use faster access to their data to identify and engage with clients who show an intent to convert.

For example, it's well known that a good time to offer a discount to consumers is just after they've shown intent (like adding a product to their cart) but then abandoned the conversion funnel. An offer at that moment can bring back large numbers of consumers who then convert. In a case like this, it's critical to use the freshest data to identify those users in minutes and deploy the right campaign to bring them back.

More frequent updates also help clients recognize and fix issues more quickly, and react to cultural trends in time to join the conversation. BigQuery is an important part of the process: it helps you join other datasets from CRM systems, call centers, or offline sales that are not available in Google Analytics today to gain greater context into those clients, issues, or emerging trends.

When streaming data is combined with BigQuery's robust programmatic and statistical tools, predictive user models can capture a greater understanding of your audience ― and help you engage those users where and when they’re ready to convert. That means more sales opportunities and better returns on your investment.

What's changing?
Those who opt in to streaming Google Analytics data into BigQuery will see data delivered to their selected BigQuery project as fast as every 10 minutes.

Those who don't opt-in will continue to see data delivered just as it has been, arriving about every eight hours.

Why is opt-in required?
The new export uses Cloud Streaming Service, which costs a little extra: $0.05 per GB (that is, "a nickel a gig"). The opt-in is our way of making sure nobody gets surprised by the additional cost. If you don't take any action, your account will continue to run as it does now, and there will be no added cost.

What data is included?
Most data sent directly to Google Analytics is included. However, data pulled in from other sources like AdWords and DoubleClick, also referred to as “integration sources”, operate with additional requirements like fraud detection. That means that this data is purposefully delayed for your benefit and therefore exempt from this new streaming functionality.

For further details on what is supported or not supported, please read the help center article here.

How do I get started?
You can start receiving the more frequent data feeds by opting in. To do so, just visit the Google Analytics BigQuery linking page in the Property Admin section and choose the following option:

You can also visit our Help Center for full details on this change and opt-in instructions.

Announcing Google Code-in 2017: The Latest and Greatest for Year Eight

We are excited to announce the 8th consecutive year of the Google Code-in (GCI) contest! Students ages 13 through 17 from around the world can learn about open source development working on real open source projects, with mentorship from active developers. GCI begins on Tuesday, November 28, 2017 and runs for seven weeks through to Wednesday, January 17, 2018.


Google Code-in is unique because not only do the students choose what they want to work on from the 2,000+ tasks created by open source organizations, but they have mentors available to help answer their questions as they work on each of their tasks.

Starting to work on open source software can be a daunting task in and of itself. How do I get started? Does the organization want my help? Am I too inexperienced? These are all questions that developers (of all ages) might consider before contributing to an open source organization.

The beauty of GCI is that participating open source organizations realize teens are often first time contributors, and the volunteer mentors are equipped with the patience and the experience to help these young minds become part of the open source community.

Open source communities thrive when there is a steady flow of new contributors who bring new perspectives, ideas, and enthusiasm. Over the last 7 years, GCI open source organizations have helped over 4,500 students from 99 countries become contributors. Many of these students are still contributing to open source years later. Dozens have gone on to become Google Summer of Code (GSoC) students and even mentors for other students.

The tasks open source organizations create vary in skill set and level, including beginner tasks any student can take on, such as “setup your development environment.” With tasks in five different categories, there’s something to fit almost any student’s skills:

  • Code: writing or refactoring 
  • Documentation/Training: creating/editing documents and helping others learn more
  • Outreach/Research: community management, marketing, or studying problems and recommending solutions
  • Quality Assurance: testing and ensuring code is of high quality
  • User Interface: user experience research, user interface design, or graphic design

Open source organizations can apply to participate in Google Code-in starting on Monday, October 9, 2017. Google Code-in starts for students November 28th!

Visit the contest site g.co/gci to learn more about the contest and find flyers, slide decks, timelines and more.

By Stephanie Taylor, Google Open Source

New German GCP region – open now



We’re excited to announce that the first Google Cloud Platform (GCP) region in Germany is now open for business. You can now choose the German region to build applications and store data.*

The new German region, europe-west3, joins europe-west1 in Belgium, offering another location in continental Europe and making it easier to build highly available, performant applications using resources across both regions.

Hosting applications in europe-west3 can improve latency by up to 50% for end users in Germany, Switzerland, Austria and eastern Europe, compared to hosting them in Belgium. European companies east of Frankfurt should see better app performance when using the German region. 


Services 


The new German region joins existing sales and support offices in Germany, and is launching with three zones and the following services:


Customer benefits 


Companies in Germany have already expressed excitement for this region, including our close partner SAP and customers like REWE Digital, Klöckner, Kärcher, MeisterLabs and Sovanta AG.

“Due to its outstanding performance and global scale, Google Cloud is the ideal solution for our business. We see Google Cloud as a leader in the area of analytics and machine learning, and we have already successfully built early proof of concepts with the Google Cloud Vision API.” 
– Dr. Daniel Heubach, VP Digital Transition

 “Rewe Digital benefits greatly from Google Cloud’s first-class, enterprise-ready infrastructure, paired with powerful products such as Google Container Engine and Google’s commitment to open source technologies.” 
– Dr. Robert Zores, Geschäftsführer Technologie
“Google Cloud is a strong growth partner for our startup. and using Google Compute Engine to manage our underlying infrastructure means that we can focus on the development and marketing of our products Mindmeister & MeisterTask.” 
– Till Vollmer, Gründer and CEO
For more details on this new region, visit our German region page or visit our locations page for updates on other regions coming online. Give us a shout to request early access to new regions and help us prioritize them. We’re excited to see what you’ll build with the help of the new German region.

 *Please visit our Service Specific Terms to get detailed information on our data storage capabilities.

*********


Neue Google Cloud Region in Deutschland eröffnet 



Wir freuen uns sehr, dass wir für Google Cloud Platform die Eröffnung der ersten Region in Deutschland bekannt geben können. Ab jetzt ist es möglich, für die Erstellung von Anwendungen und Apps sowie für die Speicherung von Daten die Region Deutschland auszuwählen.*

Mit der neuen Region in Deutschland, europe-west3, gibt es neben europe-west1 in Belgien nun einen weiteren Standort auf dem europäischen Festland, über den jederzeit leistungsstarke Anwendungen einfacher erstellt werden können. Dabei werden die Ressourcen beider Regionen genutzt. In der Region europe-west3 können Unternehmen aus Deutschland, die Schweiz, Österreich und Osteuropa ihre Anwendungen hosten und erreichen so im Vergleich zur Region in Belgien eine Verringerung der Netzwerklatenz um bis zu 50 Prozent. Europäische Unternehmen, die sich östlich von Frankfurt befinden und die Google-Cloud-Platform-Region in Deutschland nutzen, sollten auch eine bessere Leistung für ihre Anwendungen erhalten.

Leistungen 

Neben den bereits bestehenden Google-Büros, die Vertrieb und Kundenservice vor Ort anbieten, ist Google Cloud Plattform nun auch mit einer Region in Deutschland vor Ort. Die Region ist in drei Zonen unterteilt und bietet folgende Leistungen:

Vorteile für Kunden 

Unternehmen in Deutschland, wie unser enger Partner SAP und Kunden wie REWE Digital, Klöckner, Kärcher, MeisterLabs und Sovanta AG haben schon länger ihr großes Interesse an dieser Google-Cloud-Platform-Region geäußert.

 „Die Google Cloud ist aufgrund der herausragenden Leistung und der globalen Ausrichtung die perfekte Lösung für unser Unternehmen. Im Bereich Analyse und maschinelles Lernen ist die Google Cloud unserer Meinung nach führend und mit der Google Cloud Vision API haben wir bereits erfolgreich Machbarkeitsprüfungen erstellt.“  
– Dr. Daniel Heubach, VP Digital Transition 

 „REWE Digital profitiert sehr von der erstklassigen Infrastruktur der Google Cloud, den dazugehörigen leistungsfähigen Produkten wie der Google Container Engine und von Googles Bekenntnis zu Open-Source-Technologien.“ 
– Dr. Robert Zores, Geschäftsführer Technologie

 „Google Cloud ist für das Wachstum unseres Start-up-Unternehmens ein starker Partner und mit der Google Compute Engine für die Verwaltung unserer zugrunde liegenden Infrastruktur können wir uns für unsere Kunden ganz auf die Entwicklung und Vermarktung unserer Produkte Mindmeister und MeisterTask konzentrieren.“ 
– Till Vollmer, Gründer & CEO  

Weitere Informationen zur neuen GCP-Region erhalten Sie auf unserer Seite für die Region Deutschland und zur Eröffnung weiterer Regionen auf der Seite für alle Standorte. Schreiben Sie uns, wenn Sie als Erster Zugang zu neuen Regionen erhalten möchten und unterstützen Sie uns so dabei, diese vorrangig zu entwickeln. Wir sind gespannt, was Sie mit Hilfe der neuen GCP-Region in Deutschland alles erstellen werden. Bis dann!

 *Bitte beachten Sie die spezifischen Bedingungen zu den einzelnen Services (Service Specific Terms), um detaillierte Informationen über unsere Möglichkeiten zur Datenspeicherung zu erfahren.

Google Summer of Code 2017 Student Curtain Call

Back in early May we announced the students accepted into the 13th edition of the Google Summer of Code (GSoC) program, our largest program ever! Today we are pleased to announce the 1,128 (86.2%*) students from 68 countries that successfully completed the 2017 GSoC. Great job, students!





Students worked diligently with 201 open source organizations and over 1,600 mentors to learn to work with internationally distributed online teams, write great code and help their mentoring org enhance, extend and refine their codebases. Students have also become an important part of these communities. We feel strongly that to keep open source organizations thriving and evolving, they need new ideas - GSoC students help to bring fresh perspectives to these important projects.

We look forward to seeing even more from the 2017 students. Many will go on to become GSoC mentors in future programs and many more will become committers to these and other open source organizations. Some may even create their own open source projects! These students have a bright future ahead of them in technology and open source.

Interested in what the students worked on this summer? Check out their work as well as statistics on past programs.

A big thank you to our mentors and organization administrators who make this program possible. Their dedication to welcoming new student contributors into their communities and teaching them the fundamentals of open source is awesome and inspiring. Thank you all!

Congratulations to all of the GSoC 2017 students and the mentors who made this our biggest and best Google Summer of Code yet.

By Stephanie Taylor, Google Open Source

* 1,309 students started the coding period on May 30th, stats are based upon that number.

Cloud Speech API improves longform audio recognition and adds 30 new language variants



Since its launch in 2016, businesses have used the Google Cloud Speech API to improve speech recognition for everything from voice-activated commands to call center routing to data analytics. And since then, we’ve gotten a lot of feedback that our users would like even more functionality and control. That’s why today we’re announcing Cloud Speech API features that expand support for long-form audio and further extend our language support to help even more customers inject AI into their businesses.

Here’s more on what the updated Cloud Speech API can do:


Word-level timestamps

Our number one most requested feature has been providing timestamp information for each word in the transcript. Word-level timestamps let users jump to the moment in the audio where the text was spoken, or display the relevant text while the audio is playing. You can find more information on timestamps here.

Happy Scribe uses Cloud Speech API to power its easy-to-use and affordable voice-to-text transcription service, helping professionals such as reporters and researchers transcribe interviews.
“Having the ability to map the audio to the text with timestamps significantly reduces the time spent proofreading transcripts.”  
 Happy Scribe Co-founder, André Bastie
VoxImplant enables companies to build voice and video applications, including IVR and speech analytics applications.
“Now with Google Cloud Speech API timestamps, we can accurately analyze phone call conversations between two individuals with real-time speech-to-text transcription, helping our customers drive business impact. The ability to easily find the place in a call when something was said using timestamps makes Cloud Speech API much more useful and will save our customers’ time”  
 VoxImplant CEO, Alexey Aylarov

Support for files up to 3 hours long

To help our users with long-form audio needs, we’re increasing the length of supported files from 80 minutes to up to 3 hours. Additionally, files longer than 3 hours could be supported on a case-by-case basis by applying for a quota extension through Cloud Support.

Expanded language coverage

Cloud Speech API already supports 89 language varieties. Today, coinciding with the broader announcement this morning, we’re adding 30 additional language varieties, from Bengali to Latvian to Swahili, covering more than one billion additional speakers. Our new expanded language support helps Cloud Speech API customers reach more users in more countries for an almost global reach. In addition, it enables users in more countries to use speech to access products and services that up until now have never been available to them.

You can find our complete list of supported languages here.

We hope these updates will help our users do more with Cloud Speech API. To learn more, visit Cloud.google.com/speech/.

Now Optimize users can innovate in 37 new languages

It just got a whole lot easier to share Google Optimize with your teams around the world.

Optimize is now available in 37 new languages. Got a team in Thailand? No trouble. Cross-functional partner in Croatia? You're covered. You'll find the full list of supported languages here.

We're always glad to bring our products to more of the world. But in this case, we're extra excited about the way this will help teams collaborate and innovate not just across the office but across the globe.

In this data-rich world, everyone in your company needs to be part of building a culture of growth: a culture that embraces testing and analytics as the best way to learn what customers like most and to improve their experience day by day. Optimize opens the door for innovators at every level to explore how even tiny UI changes can improve results. 

Often those innovators take the form of a small "X-team" — maybe an analyst, a designer, and an engineer working together and totally focused on testing and optimization. With Optimize, a group like that can create changes in minutes instead of days, and they can more easily share that growth mindset and inspire others across their organization.

Now with 37 more languages in play, Optimize makes it possible for many more local teams to take on the role of optimizers, innovators, and culture-changers.

If you have team members who have selected one of the 37 new languages in their Google Account preferences, they'll see Optimize in that language whenever they next sign in. (If you’d like to select a language preference just for Optimize, you can do so in your Optimize user settings at any time.) And if you're happy with your current Optimize language, you're fine: No action is needed.

To learn more about your global language options, visit our help center. Happy optimizing!

Independent research firm names Google Cloud the Insight PaaS Leader



Forrester Research, a leading analyst firm, just named Google Cloud Platform (GCP) the leader in The Forrester Wave™: Insight Platforms-As-A-Service, Q3 2017, its analysis of cloud providers offering Platform as a Service. According to the report, an insight PaaS makes it easier to:

  • Manage and access large, complex data sets
  • Update and evolve applications that deliver insight at the moment of action
  • Update and upgrade technology
  • Integrate and coordinate team member activities

For this Wave, Forrester evaluated eight separate vendors. It looked at 36 evaluation criteria spanning three broad buckets  current offering, strategy and market presence.

Of the eight vendors, Google Cloud’s insight PaaS scored highest for both current offering and strategy.
“Google was the only vendor in our evaluation to offer insight execution features like full machine learning automation with hyperparameter tuning, container management and API management. Google will appeal to firms that want flexibility and extreme scalability for highly competent data scientists and cloud application development teams used to building solutions on PaaS.”  The Forrester Wave: Insight Platforms-As-A-Service, Q3 2017
Our presence in the Insight Platform as a Service market goes way back. We started with a vision for serverless computing back in 2008 with Google App Engine and added serverless data processing in 2010 with Google BigQuery. In 2016 we added machine learning (Cloud Machine Learning Engine) to GCP to help bring the power of TensorFlow (Google’s open source machine learning framework) to everyone. We continue to be amazed by what companies like Snap and The Telegraph are doing with these technologies and look forward to building on these insight services to help you build the amazing applications of tomorrow.

Sign up here to get a complimentary copy of the report.

Professors from Around the World Get Their Students into HFOSS

Over the last four years instructors from around the world have gathered for the Professors’ Open Source Software Experience (POSSE) workshop to integrate open source concepts into their curriculum. At each event, professors make more progress toward providing students with hands on experience via contributions to humanitarian free and open source software (HFOSS).

This year Google was proud to not only host a workshop at our San Francisco office in April, but also to collaborate with the organizers to bring a POSSE workshop to Europe for the first time.
POSSE workshop leaders, from left to right: Clif Kussmaul (Muhlenburg College), Lori Postner (Nassau Community College), Stoney Jackson (Western New England University),  Heidi Ellis (Western New England University), Greg Hislop (Drexel University), and Darci Burdge (Nassau Community College).
The workshop in Italy was led by Dr. Gregory Hislop from Drexel University, and Drs. Heidi Ellis and Stoney Jackson from Western New England University, and brought together 20 instructors from Germany, Hungary, India, Italy, Macedonia, Qatar, Spain, Swaziland, the United Kingdom, and the United States. This was the most geographically diverse workshop to date!
Group photos in San Francisco, USA on April 22, 2017 (left) and Bologna, Italy on July 1, 2017 (right).
What’s next for POSSE? University instructors from institutions in the US can apply now to participate in the next workshop, November 16-18 in Raleigh, NC and join their peers in the community of instructors weaving HFOSS into their curriculum.

By Helen Hu, Google Open Source