├── .gitignore
├── LICENSE
├── README.md
├── composer.json
├── composer.lock
└── index.php
/.gitignore:
--------------------------------------------------------------------------------
1 | .env
2 | node_modules
3 | .idea
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2022 Kinsta Inc.
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Kinsta - Hello World - PHP
2 | An example of how to set your PHP application up to enable deployment on Kinsta App Hosting services.
3 |
4 | ---
5 | Kinsta is a developer-centric cloud host / PaaS. We’re striving to make it easier for you to share your web projects with your users. Focus on coding and building, and we’ll take care of deployment and provide fast, scalable hosting. + 24/7 expert-only support.
6 |
7 | - [Start your free trial](https://kinsta.com/signup/?product_type=app-db)
8 | - [Application Hosting](https://kinsta.com/application-hosting)
9 | - [Database Hosting](https://kinsta.com/database-hosting)
10 |
11 | ## Dependency Management
12 | During the deployment process Kinsta will automatically install dependencies defined in your `composer.json` file.
13 |
14 | ## Web Server Setup
15 | Kinsta will automatically configure an apache web server which will serve from the main directory of the project in the usual fashion; create an `index.php` file in your project folder as the entry-point.
16 |
17 | ## What is PHP
18 | PHP is a popular server-side scripting language used primarily for web development. It enables developers to create dynamic web pages, interact with databases, and handle various web-related tasks efficiently. Learn more on [php.net](https://php.net).
19 |
20 | ## Watch How to Set Up a PHP Application on Kinsta
21 | [](https://www.youtube.com/watch?v=PCvrcyV3_hI)
22 |
--------------------------------------------------------------------------------
/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "kinsta/hello-world-php",
3 | "description": "An example of how to set your PHP application up to enable deployment on Kinsta App Hosting services.",
4 | "require": {
5 | "php": "8.2.*"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/composer.lock:
--------------------------------------------------------------------------------
1 | {
2 | "_readme": [
3 | "This file locks the dependencies of your project to a known state",
4 | "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5 | "This file is @generated automatically"
6 | ],
7 | "content-hash": "e68695f4bdc77650b5d6b0c180b62aa5",
8 | "packages": [],
9 | "packages-dev": [],
10 | "aliases": [],
11 | "minimum-stability": "stable",
12 | "stability-flags": [],
13 | "prefer-stable": false,
14 | "prefer-lowest": false,
15 | "platform": {
16 | "php": "8.2.*"
17 | },
18 | "platform-dev": [],
19 | "plugin-api-version": "2.6.0"
20 | }
21 |
--------------------------------------------------------------------------------
/index.php:
--------------------------------------------------------------------------------
1 |