使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
了解如何使用 Google Cloud 产品库和框架在Google Cloud上构建和迭代 PHP 应用。
申请免费试用,开始在 Google Cloud 上构建和部署应用。
免费开始使用
获享 $300 免费赠金开始概念验证
-
体验 Gemini 2.0 Flash Thinking
-
免费使用热门产品(包括 AI API 和 BigQuery)的每月用量
-
不会自动收费,无需承诺
查看免费产品优惠
继续探索 20 多种提供“始终免费”用量的产品
使用适用于常见应用场景(包括 AI API、虚拟机、数据仓库等)的 20 多种免费产品。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-04-22。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-04-22。"],[],[],null,["# PHP documentation\n=================\n\n[Read product documentation](/php/getting-started) Learn how to use Google Cloud product libraries and\nframeworks to build and iterate PHP apps on\nGoogle Cloud.\nStart building and deploying on Google Cloud with a [free trial](https://console.cloud.google.com/freetrial). \n[Get started for free](https://console.cloud.google.com/freetrial) \n\n#### Start your proof of concept with $300 in free credit\n\n- Get access to Gemini 2.0 Flash Thinking\n- Free monthly usage of popular products, including AI APIs and BigQuery\n- No automatic charges, no commitment \n[View free product offers](/free/docs/free-cloud-features#free-tier) \n\n#### Keep exploring with 20+ always-free products\n\n\nAccess 20+ free products for common use cases, including AI APIs, VMs, data warehouses,\nand more.\n\nDocumentation resources\n-----------------------\n\nFind quickstarts and guides, review key references, and get help with common issues. \nformat_list_numbered\n\n### Guides\n\n- Tutorial \n\n\n [Getting started](/php/getting-started)\n\nfind_in_page\n\n### Reference\n\n- Technical \n\n\n [APIs and PHP libraries](/php/docs/reference)\n\nRelated resources\n-----------------\n\nTraining and tutorials \nUse cases \nCode samples \nExplore self-paced training, use cases, reference architectures, and code samples with examples of how to use and connect Google Cloud services. Training \nTraining and tutorials\n\n### App Engine: Qwik Start - PHP\n\n\nThis hands-on lab shows you how to create a small App Engine\napplication that displays a short message.\n\n\n[Learn more](https://www.cloudskillsboost.google/focuses/2755?parent=catalog) \nUse case \nUse cases\n\n### Authenticating users\n\n\nApps running on Google Cloud managed platforms such as App Engine\ncan avoid managing user authentication and session management by using\nIdentity-Aware Proxy (IAP) to control access to them.\n\nIAP App Engine\n\n\u003cbr /\u003e\n\n[Learn more](/php/getting-started/authenticate-users) \nUse case \nUse cases\n\n### Handling sessions\n\n\nMany apps need session handling for authentication and user\npreferences. This tutorial shows how to handle sessions on Cloud Run.\n\nCloud Run Firestore\n\n\u003cbr /\u003e\n\n[Learn more](/php/getting-started/session-handling-with-firestore) \nUse case \nUse cases\n\n### Background processing\n\n\nMany apps need to do background processing outside of the context\nof a web request. This tutorial creates a web app that lets users input\ntext to translate, and then displays a list of previous translations.\n\nCloud Run Pub/Sub Firestore\n\n\u003cbr /\u003e\n\n[Learn more](/php/getting-started/background-processing) \nCode sample \nCode Samples\n\n### Getting started with PHP samples\n\n\nA set of simple PHP samples to help you get\nstarted.\n\n\n[Open GitHub\narrow_forward](https://github.com/GoogleCloudPlatform/getting-started-php) \nCode sample \nCode Samples\n\n### Google Cloud PHP samples\n\n\nSearch or browse all available PHP code samples.\n\n\n[Get started](/docs/samples?l=php)\n\nRelated videos\n--------------"]]