From 1bb00dc7aa70a8d0881c70799c84bf8395232058 Mon Sep 17 00:00:00 2001 From: Pete Bishop Date: Tue, 25 Feb 2025 10:42:04 +0000 Subject: [PATCH 1/2] Implement Support Policy - Updated AppServiceProvider to share social links to all views - Implemented new page for desktop docs to provide overview of support policy --- app/Providers/AppServiceProvider.php | 11 ++++++- .../views/components/header-banner.blade.php | 8 ++--- .../1/getting-started/support-policy.md | 33 +++++++++++++++++++ 3 files changed, 47 insertions(+), 5 deletions(-) create mode 100644 resources/views/docs/desktop/1/getting-started/support-policy.md diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 452e6b6..d87eefc 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -2,6 +2,7 @@ namespace App\Providers; +use Illuminate\Support\Facades\View; use Illuminate\Support\ServiceProvider; class AppServiceProvider extends ServiceProvider @@ -11,7 +12,7 @@ class AppServiceProvider extends ServiceProvider */ public function register(): void { - // + $this->registerSharedViewVariables(); } /** @@ -21,4 +22,12 @@ public function boot(): void { // } + + private function registerSharedViewVariables() + { + View::share('discordLink', 'https://discord.gg/X62tWNStZK'); + View::share('bskyLink', 'https://bsky.app/profile/nativephp.bsky.social'); + View::share('openCollectiveLink', 'https://opencollective.com/nativephp'); + View::share('githubLink', 'https://github.com/NativePHP'); + } } diff --git a/resources/views/components/header-banner.blade.php b/resources/views/components/header-banner.blade.php index 50a1c4d..e4ebc69 100644 --- a/resources/views/components/header-banner.blade.php +++ b/resources/views/components/header-banner.blade.php @@ -34,19 +34,19 @@ class="inline-flex items-center transition rounded hover:text-white/80 focus:out diff --git a/resources/views/docs/desktop/1/getting-started/support-policy.md b/resources/views/docs/desktop/1/getting-started/support-policy.md new file mode 100644 index 0000000..85b0686 --- /dev/null +++ b/resources/views/docs/desktop/1/getting-started/support-policy.md @@ -0,0 +1,33 @@ +--- +title: Support Policy +order: 500 +--- + +## Support Policy + +NativePHP for Desktop is an open-source project dedicated to providing robust and reliable releases. + +We are committed to supporting the two latest PHP versions, ensuring that our users benefit from the latest features, security updates, and performance improvements. + +__We do not remove support for a PHP version without a major version release.__ + +Additionally, we support each Laravel version until it reaches its official end of life (EOL), ensuring that your applications can remain up-to-date. + +Our support policy reflects our commitment to maintaining high standards of quality and security, providing our users with the confidence they need to build and deploy their applications using NativePHP for Desktop. + +### PHP Versions +| NativePHP Version | Supported PHP Versions | +|-------------------|------------------------| +| 1.0.0 and earlier | 8.2, 8.3, 8.4 | + +NativePHP provides methods of bundling your own static PHP binaries. Support is not provided for these. + +### Laravel Versions +| NativePHP Version | Supported PHP Versions | +|-------------------|------------------------| +| 1.0.0 and earlier | 11.x, 12.x | + +## Requesting Support +Support can be obtained by opening an issue on the [NativePHP/laravel]({{ $githubLink }}/laravel/issues) repository or by joining the [Discord]({{ $discordLink }}). + +When requesting support, it is requested that you are using a supported version. If you are not, you will be asked to upgrade to a supported version before any support is provided. From c3623f346acb32fe8d7889063634684e532c0bb6 Mon Sep 17 00:00:00 2001 From: Pete Bishop Date: Tue, 25 Feb 2025 11:55:23 +0000 Subject: [PATCH 2/2] Links to support policies --- app/Providers/AppServiceProvider.php | 2 +- .../docs/desktop/1/getting-started/support-policy.md | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index d87eefc..efdb3cf 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -23,7 +23,7 @@ public function boot(): void // } - private function registerSharedViewVariables() + private function registerSharedViewVariables(): void { View::share('discordLink', 'https://discord.gg/X62tWNStZK'); View::share('bskyLink', 'https://bsky.app/profile/nativephp.bsky.social'); diff --git a/resources/views/docs/desktop/1/getting-started/support-policy.md b/resources/views/docs/desktop/1/getting-started/support-policy.md index 85b0686..8ecf303 100644 --- a/resources/views/docs/desktop/1/getting-started/support-policy.md +++ b/resources/views/docs/desktop/1/getting-started/support-policy.md @@ -18,14 +18,18 @@ Our support policy reflects our commitment to maintaining high standards of qual ### PHP Versions | NativePHP Version | Supported PHP Versions | |-------------------|------------------------| -| 1.0.0 and earlier | 8.2, 8.3, 8.4 | +| ^1.0 | 8.3, 8.4 | + +[PHP: Supported Versions](https://www.php.net/supported-versions.php) NativePHP provides methods of bundling your own static PHP binaries. Support is not provided for these. ### Laravel Versions | NativePHP Version | Supported PHP Versions | |-------------------|------------------------| -| 1.0.0 and earlier | 11.x, 12.x | +| ^1.0 | 11.x, 12.x | + +[Laravel: Support Policy](https://laravel.com/docs/master/releases#support-policy) ## Requesting Support Support can be obtained by opening an issue on the [NativePHP/laravel]({{ $githubLink }}/laravel/issues) repository or by joining the [Discord]({{ $discordLink }}).