Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@astrojs/tailwind": "^6.0.2",
"astro": "^5.12.2",
"astro-seo-meta": "^4.2.0",
"astro-seo-schema": "^5.0.0",
"tailwindcss": "^3.4.17",
"typescript": "^5.8.3"
},
Expand Down
25 changes: 25 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions public/.well-known/ai-plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"schema_version": "v1",
"name_for_human": "TryPHP",
"name_for_model": "TryPHP",
"description_for_human": "Effortlessly set up PHP on Linux with a simple curl command. Install and switch between multiple PHP versions, with automatic Composer and PHP extensions installation.",
"description_for_model": "TryPHP is a tool that helps users easily install PHP on Linux systems. It provides simple curl commands to install different PHP versions (7.4, 8.1, 8.2, 8.3, 8.4) and presets for frameworks like Laravel and FrankenPHP. The tool automatically installs Composer and required PHP extensions, and configures the development environment.",
"auth": {
"type": "none"
},
"api": {
"type": "openapi",
"url": "https://tryphp.dev/.well-known/openapi.yaml"
},
"logo_url": "https://tryphp.dev/cover.png",
"contact_email": "security@tryphp.dev",
"legal_info_url": "https://tryphp.dev/legal",
"examples": [
{
"input": "How do I install PHP on Linux?",
"output": "You can easily install the latest version of PHP on Linux with this simple command:\n```sh curl -fsSL https://tryphp.dev/install.sh | bash```\nThis will automatically download and install the latest stable version of PHP along with Composer and common extensions."
},
{
"input": "How can I install PHP 8.2 specifically?",
"output": "To install PHP 8.2 specifically, you can use this command:\n```sh curl -fsSL https://tryphp.dev/8.2/install.sh | bash```\nThis will install PHP 8.2 along with Composer and common extensions."
},
{
"input": "How do I set up PHP for Laravel?",
"output": "To install PHP with all the extensions required for Laravel, you can use the Laravel preset:\n```sh curl -fsSL https://tryphp.dev/presets/laravel | bash```\nThis will install PHP with all the extensions needed to run a Laravel application."
}
]
}
59 changes: 59 additions & 0 deletions public/.well-known/openapi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
openapi: 3.0.1
info:
title: TryPHP API
description: TryPHP is a tool that helps users easily install PHP on Linux systems with simple curl commands.
version: "1.0"
servers:
- url: https://tryphp.dev
paths:
/info:
get:
operationId: getInfo
summary: Get information about TryPHP
description: Returns information about TryPHP, including available PHP versions and presets.
responses:
"200":
description: Information about TryPHP
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: The name of the tool
example: TryPHP
description:
type: string
description: A brief description of the tool
example: Effortlessly set up PHP on Linux with a simple curl command
versions:
type: array
description: Available PHP versions
items:
type: object
properties:
version:
type: string
description: PHP version
example: PHP 8.2
command:
type: string
description: Installation command
example: curl -fsSL https://tryphp.dev/8.2/install.sh | bash
presets:
type: array
description: Available presets
items:
type: object
properties:
name:
type: string
description: Preset name
example: Laravel
command:
type: string
description: Installation command
example: curl -fsSL https://tryphp.dev/presets/laravel | bash
components:
schemas: {}
3 changes: 2 additions & 1 deletion public/robots.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
User-agent: *
Disallow:
Allow: /

Sitemap: https://tryphp.dev/sitemap-index.xml
24 changes: 24 additions & 0 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
import { Seo } from "astro-seo-meta";
import { Schema } from "astro-seo-schema";
import { site } from "../config";
---

Expand All @@ -12,6 +13,7 @@ import { site } from "../config";
<meta name="viewport" content="width=device-width" />
<meta name="generator" content={Astro.generator} />
<meta name="msvalidate.01" content="D1916A06C360E731C64F4EEA9FE4BC08" />

<Seo
title={site.title}
description={site.description}
Expand Down Expand Up @@ -40,6 +42,28 @@ import { site } from "../config";
card: "summary",
}}
/>

<!-- JSON-LD structured data for better LLM understanding -->
<Schema
item={{
"@context": "https://schema.org",
"@type": "SoftwareApplication",
name: "TryPHP",
applicationCategory: "DeveloperApplication",
operatingSystem: "Linux",
description: site.description,
url: site.url,
author: {
"@type": "Organization",
name: "TryPHP",
url: site.url,
logo: "https://tryphp.dev/cover.png",
sameAs: ["https://github.com/mhdcodes"],
},
softwareVersion: "PHP 7.4 - 8.4",
keywords: "PHP installation, PHP environment setup, Linux PHP setup",
}}
/>
</head>
<body
class="bg-gray-100 dark:bg-gray-900 text-gray-900 dark:text-gray-100 transition-colors duration-300"
Expand Down