Skip to content
Closed
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
85 changes: 85 additions & 0 deletions public/contributing.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<?php
$_SERVER['BASE_PAGE'] = 'contributing.php';
require_once __DIR__ . '/../include/prepend.inc';

site_header("Contributing to PHP", ["current" => "community"]);
?>

<p>
<a href="/get-involved.php">&laquo; All the ways to get involved</a>
</p>

<h1 id="contributing-to-php">Contributing to PHP</h1>
<div class="content-box">

<p>
Anybody who programs in PHP can be a contributing member of the community
that develops and deploys it; the task of deploying PHP, documentation and
associated websites is a never ending one. With every release, or release
candidate comes a wave of work, which takes a lot of organization and
co-ordination.
</p>

<p>
With the introduction of release managers comes a smoother release process,
but help is still needed: testing release candidates, finding and squashing
bugs in tests, documentation, and sources.
</p>
</div>

<h3 class="content-title" id="ways-to-contribute">Four Best Ways to Contribute</h3>

<ol class="content-box listed">
<li>Running test suites in <a href="/pre-release-builds.php">RC</a>
and <a href="https://php.net/releases">release</a> distributions of PHP</li>
<li>Help finding and diagnosing failed tests, see
the <a href="https://qa.php.net/write-test.php">phpt documentation</a></li>
<li>Filing and resolving bug reports
on <a href="https://github.com/php/php-src/issues/">GitHub Issues</a>.</li>
<li>Help maintain and or translate documentation files
at the doc-* repositories on <a href="https://github.com/php/?q=doc">github</a>. Check out our
<a href="https://doc.php.net/guide/">guide for contributors</a>.</li>
</ol>

<h3 class="content-header" id="php-src">Development of the PHP source</h3>

<div class="content-box">
<p>
Someone hoping to become involved in the maintenance and development of
the source should be experienced in all of the areas mentioned above, as
this creates a strong team; everyone knows how every other part of the
project works.
</p>

<p>
You will also need experience in C programming as PHP is written entirely in C.
</p>
</div>

<h3 class="content-title" id="references">Useful links for developers</h3>
<ul class="content-box listed">
<li><a href="https://wiki.php.net/rfc/howto">The RFC process</a> - the process
by which developers can suggest and discuss new ideas with the community</li>
<li><a href="/build-setup.php">Developer Setup Help</a> - some helpful information
regarding setting up a development environment for PHP</li>
<li><a href="/mailing-lists.php">Mailing List</a> - list of general and internal mailing lists
used by PHP</li>
</ul>

<?php

$SIDEBAR_DATA = '
<div class="panel">
<div class="headline">Table of Contents</div>
<div class="body">
<ul>
<li><a href="#contributing-to-php">Contributing to PHP</a></li>
<li><a href="#ways-to-contribute">Four Best Ways to Contribute</a></li>
<li><a href="#php-src">Development of the PHP source</a></li>
<li><a href="#references">Useful links for developers</a></li>
</ul>
</div>
</div>
';

site_footer(['sidebar' => $SIDEBAR_DATA]);
194 changes: 148 additions & 46 deletions public/get-involved.php
Original file line number Diff line number Diff line change
@@ -1,65 +1,142 @@
<?php

use phpweb\News\ConferenceSchedule;
use phpweb\News\NewsHandler;

$_SERVER['BASE_PAGE'] = 'get-involved.php';
require_once __DIR__ . '/../include/prepend.inc';

site_header("Get Involved", ["current" => "community"]);
site_header("Get Involved", [
"current" => "community",
"css" => ["get-involved.css"],
]);
?>

<h2 class="content-title" id="contributing-to-php">Contributing to PHP</h2>
<div class="content-box">
<script>
// The developer guide used to live on this page; send its old anchors
// along to contributing.php so existing links keep working.
const movedAnchors = ['#contributing-to-php', '#ways-to-contribute', '#php-src', '#references'];

<p>
Anybody who programs in PHP can be a contributing member of the community
that develops and deploys it; the task of deploying PHP, documentation and
associated websites is a never ending one. With every release, or release
candidate comes a wave of work, which takes a lot of organization and
co-ordination.
</p>
if (movedAnchors.includes(location.hash)) {
location.replace('/contributing.php' + location.hash);
}
</script>

<h1>Get Involved</h1>

<p>
With the introduction of release managers comes a smoother release process,
but help is still needed: testing release candidates, finding and squashing
bugs in tests, documentation, and sources.
PHP is maintained by a worldwide community of developers. If you're
looking to get connected, or if you want to help shape the language
itself, here are the ways you can get started.
</p>

<div class="get-involved-callout">
<p>
<strong>Looking to contribute to PHP?</strong>
To work on the language itself, we cover how on the
<a href="/contributing.php">Contributing to PHP</a> page.
</p>
</div>

<h3 class="content-title" id="ways-to-contribute">Four Best Ways to Contribute</h3>
<h2 class="content-header" id="in-person">Meet the community in person</h2>

<div class="get-involved-grid">
<section class="get-involved-card">
<h3><a href="/conferences/">Conferences</a></h3>
<p>
PHP conferences are held all over the world. Find one near
you, or one you'd consider traveling to.
</p>
<p>
Or if you're interested in speaking, check out the
<a href="/conferences/?view=cfps">open calls for papers</a>.
</p>
</section>

<section class="get-involved-card">
<h3><a href="https://php.ug/">User groups</a></h3>
<p>
PHP developers around the world meet up in their local city to share
what they're learning and working on.
</p>
<p>Find one near you on
<a href="https://php.ug/">PHP.ug</a>.
</p>
</section>

<section class="get-involved-card">
<h3><a href="/cal.php">Events calendar</a></h3>
<p>
See our list of meetups, training sessions, and other community events.
</p>
<p>
Running an event? <a href="/submit-event.php">Submit it to the calendar</a>.
</p>
</section>
</div>

<h2 class="content-header" id="online">Join the conversation online</h2>

<div class="get-involved-grid">
<section class="get-involved-card">
<h3><a href="https://phpc.chat/">PHP Community Discord</a></h3>
<p>
The PHP Community chat is hosted on Discord and also bridged to IRC: #phpc on
<a href="https://libera.chat/">Libera.Chat</a>.
</p>
</section>

<section class="get-involved-card">
<h3><a href="https://www.reddit.com/r/PHP/">r/PHP</a></h3>
<p>
The r/PHP Reddit community hosts news, discussions, and weekly help threads.
</p>
</section>

<ol class="content-box listed">
<li>Running test suites in <a href="/pre-release-builds.php">RC</a>
and <a href="https://php.net/releases">release</a> distributions of PHP</li>
<li>Help finding and diagnosing failed tests, see
the <a href="https://qa.php.net/write-test.php">phpt documentation</a></li>
<li>Filing and resolving bug reports
on <a href="https://github.com/php/php-src/issues/">GitHub Issues</a>.</li>
<li>Help maintain and or translate documentation files
at the doc-* repositories on <a href="https://github.com/php/?q=doc">github</a>. Check out our
<a href="https://doc.php.net/guide/">guide for contributors</a>.</li>
</ol>
<section class="get-involved-card">
<h3><a href="/support.php">Getting help</a></h3>
<p>
The <a href="/support.php">help page</a> lists the
best places to ask questions.
</p>
</section>
</div>

<h3 class="content-header" id="php-src">Development of the PHP source</h3>
<h2 class="content-header" id="contribute">Contribute to PHP</h2>

<div class="content-box">
<p>
Someone hoping to become involved in the maintenance and development of
the source should be experienced in all of the areas mentioned above, as
this creates a strong team; everyone knows how every other part of the
project works.
</p>
<p>
Anybody who programs in PHP can help build it. How to start:
</p>
<ul class="listed">
<li>Testing <a href="/pre-release-builds.php">release candidates</a> and reporting what breaks</li>
<li>Filing and fixing bugs on <a href="https://github.com/php/php-src/issues/">GitHub Issues</a></li>
<li>Improving and translating <a href="https://doc.php.net/guide/">the documentation</a></li>
<li>Proposing changes to the language through <a href="https://wiki.php.net/rfc/howto">the RFC process</a></li>
</ul>
<p>
<a href="/contributing.php"><strong>Read the full guide to contributing to PHP &raquo;</strong></a>
</p>
</div>

<p>
You will also need experience in C programming as PHP is written entirely in C.
</p>
<h2 class="content-header" id="fund">Support the people who build PHP</h2>

<div class="content-box">
<p>
<a href="https://thephp.foundation/">The PHP Foundation</a> funds developers
to work on the PHP language full-time. Individuals and companies can
<a href="https://thephp.foundation/sponsor/">sponsor the Foundation</a> to
keep that work going.
</p>
</div>

<h3 class="content-title" id="references">Useful links for developers</h3>
<h2 class="content-header" id="follow">Follow PHP's development</h2>

<ul class="content-box listed">
<li><a href="https://wiki.php.net/rfc/howto">The RFC process</a> - the process
by which developers can suggest and discuss new ideas with the community</li>
<li><a href="/build-setup.php">Developer Setup Help</a> - some helpful information
regarding setting up a development environment for PHP</li>
<li><a href="/mailing-lists.php">Mailing List</a> - list of general and internal mailing lists
used by PHP</li>
<li><a href="/archive/">PHP news</a>: release announcements and project news (also available as an <a href="/feed.atom">Atom feed</a>)</li>
<li><a href="https://wiki.php.net/rfc">RFCs</a>: proposals for new language features, under discussion and voting</li>
<li><a href="/mailing-lists.php">Mailing lists</a>: including the internals list, where PHP's development is discussed</li>
<li><a href="https://github.com/php">PHP on GitHub</a>: the source for PHP, its documentation, and this website</li>
</ul>

<?php
Expand All @@ -69,13 +146,38 @@
<div class="headline">Table of Contents</div>
<div class="body">
<ul>
<li><a href="#contributing-to-php">Contributing to PHP</a></li>
<li><a href="#ways-to-contribute">Four Best Ways to Contribute</a></li>
<li><a href="#php-src">Development of the PHP source</a></li>
<li><a href="#references">Useful links for developers</a></li>
<li><a href="#in-person">Meet the community in person</a></li>
<li><a href="#online">Join the conversation online</a></li>
<li><a href="#contribute">Contribute to PHP</a></li>
<li><a href="#fund">Support the people who build PHP</a></li>
<li><a href="#follow">Follow PHP\'s development</a></li>
</ul>
</div>
</div>
';

$schedule = new ConferenceSchedule((new NewsHandler())->getConferences(), gmdate('Y-m-d'));

$renderConferencePanel = static function (string $title, string $href, array $entries): string {
if ($entries === []) {
return '';
}

$html = '<div class="panel">';
$html .= '<a href="' . $href . '" class="headline">' . $title . '</a>';
$html .= '<div class="body"><ul>';
foreach (array_slice($entries, 0, 4) as $entry) {
$link = $href . '#' . parse_url($entry["id"], PHP_URL_FRAGMENT);
$html .= '<li><a href="' . $link . '">' . $entry["title"] . '</a></li>';
}
$html .= '</ul></div>';
$html .= '</div>';

return $html;
};

$SIDEBAR_DATA .= $renderConferencePanel('Upcoming conferences', '/conferences/', $schedule->upcomingConferences);
$SIDEBAR_DATA .= $renderConferencePanel('Open calls for papers', '/conferences/?view=cfps', $schedule->openCallsForPapers);
$SIDEBAR_DATA .= '<p class="panel"><a href="/cal.php">User Group Events</a></p>';

site_footer(['sidebar' => $SIDEBAR_DATA]);
3 changes: 3 additions & 0 deletions public/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
<url>
<loc>https://www.php.net/contact.php</loc>
</url>
<url>
<loc>https://www.php.net/contributing.php</loc>
</url>
<url>
<loc>https://www.php.net/copyright.php</loc>
</url>
Expand Down
34 changes: 34 additions & 0 deletions public/styles/get-involved.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/* Get Involved hub page. */
.get-involved-callout {
background: var(--light-blue-color);
border-left: 4px solid var(--dark-blue-color);
border-radius: 4px;
margin: 1.5rem 0;
padding: 1rem 1.25rem;
}

.get-involved-callout p {
margin: 0;
}

.get-involved-grid {
display: grid;
gap: 1rem;
grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
margin-bottom: 1.5rem;
}

.get-involved-card {
background: #fff;
border: 1px solid var(--light-blue-color);
border-radius: 4px;
padding: 1rem 1.25rem;
}

.get-involved-card h3 {
margin-top: 0;
}

.get-involved-card p:last-child {
margin-bottom: 0;
}