[PECL-CVS] [web-pecl] master: Add message about PIE to various common PECL onboarding routes (#108)

[email protected] (James Titcumb via GitHub)
Newsgroups php.pecl.cvs
Message-ID <[email protected]>
Author: James Titcumb (asgrim)
Committer: GitHub (web-flow)
Pusher: Girgias
Date: 2025-08-12T11:31:45+01:00

Commit: https://github.com/php/web-pecl/commit/c1dfe8ab4e69c568c301a65a80d78295f2750e51
Raw diff: https://github.com/php/web-pecl/commit/c1dfe8ab4e69c568c301a65a80d78295f2750e51.diff

Add message about PIE to various common PECL onboarding routes (#108)

Changed paths:
  A  templates/includes/pie.php
  M  templates/pages/account_request.php
  M  templates/pages/index.php
  M  templates/pages/package_new.php
  M  templates/pages/release_upload.php


Diff:

diff --git a/templates/includes/pie.php b/templates/includes/pie.php
new file mode 100644
index 00000000..235cf224
--- /dev/null
+++ b/templates/includes/pie.php
@@ -0,0 +1,11 @@
+    <div class="errors">
+        <div>Have you heard about <abbr title="PHP Installer for Extensions">PIE</abbr>?</div>
+        <p style="font-weight: normal;">
+            &#x1F967; PHP Installer for Extensions (PIE) is a new tool that will
+            eventually deprecate PECL. We recommend publishing your extension
+            using PIE instead.
+        </p>
+        <p>
+            Find out more at <a href="https://github.com/php/pie">https://github.com/php/pie</a>.
+        </p>
+    </div>
diff --git a/templates/pages/account_request.php b/templates/pages/account_request.php
index 004b0537..b71130a4 100644
--- a/templates/pages/account_request.php
+++ b/templates/pages/account_request.php
@@ -6,6 +6,8 @@
 
     <h1>Publishing in PECL</h1>
 
+    <?php $this->insert('includes/pie.php'); ?>
+
     <p>A few reasons why you might apply for a PECL account:</p>
 
     <ul>
diff --git a/templates/pages/index.php b/templates/pages/index.php
index ad9ff4a0..a8ccaf4f 100644
--- a/templates/pages/index.php
+++ b/templates/pages/index.php
@@ -4,6 +4,8 @@
 
 <h3>What is PECL?</h3>
 
+<?php $this->insert('includes/pie.php'); ?>
+
 <p>
 <acronym title="PHP Extension Community Library">PECL</acronym> is a repository
 for PHP Extensions, providing a directory of all known extensions and hosting
diff --git a/templates/pages/package_new.php b/templates/pages/package_new.php
index f2bc3bf0..f947052a 100644
--- a/templates/pages/package_new.php
+++ b/templates/pages/package_new.php
@@ -5,6 +5,8 @@
 <?php if (!isset($_POST['submit']) || 0 < count($errors)): ?>
     <h1>New package</h1>
 
+    <?php $this->insert('includes/pie.php'); ?>
+
     <p>Use this form to register a new PECL package.</p>
 
     <p><b>Before proceeding</b>, make sure you pick the right name for your
diff --git a/templates/pages/release_upload.php b/templates/pages/release_upload.php
index c6e31c74..0dec5d72 100644
--- a/templates/pages/release_upload.php
+++ b/templates/pages/release_upload.php
@@ -5,6 +5,8 @@
 <?php if ($displayForm): ?>
     <h1>Upload New Release</h1>
 
+    <?php $this->insert('includes/pie.php'); ?>
+
     <?php if ($success): ?>
         <div class="success">
             Version
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.