Skip to content

Commit 5a845b9

Browse files
committed
Add sponsor page
1 parent 6e3f726 commit 5a845b9

File tree

4 files changed

+30
-0
lines changed

4 files changed

+30
-0
lines changed

css/app.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1803,6 +1803,7 @@ body {
18031803
.sponsor {
18041804
p {
18051805
margin-bottom: 0;
1806+
line-height: 45px;
18061807
}
18071808
img {
18081809
height: 45px;

src/Controller/WebController.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ public function index(Request $req): RedirectResponse|Response
4545
return $this->render('web/index.html.twig');
4646
}
4747

48+
#[Route('/sponsor/', name: 'sponsor')]
49+
public function sponsor(Request $req): Response
50+
{
51+
return $this->render('web/sponsor.html.twig');
52+
}
53+
4854
#[Route('/search/', name: 'search_web')]
4955
public function search(Request $req): RedirectResponse|Response
5056
{

templates/layout.html.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@
226226
<p class="col-xs-12 col-md-6">Maintenance and hosting provided by <a href="https://packagist.com/"><img alt="Private Packagist" src="{{ asset('img/private-packagist.svg') }}" /></a></p>
227227
<p class="col-xs-12 col-md-6">Bandwidth and CDN provided by <a href="https://bunny.net/"><img alt="Bunny.net" src="{{ asset('img/bunny-net.svg') }}" /></a></p>
228228
<p class="col-xs-12 col-md-6">Monitoring provided by <a href="https://datadog.com/"><img alt="Datadog" src="{{ asset('img/datadog-light.png') }}" /></a></p>
229+
<p class="col-xs-12 col-md-6"><a href="{{ path('sponsor') }}">Sponsor Packagist.org &amp; Composer</a></p>
229230
</div>
230231
</nav>
231232
</footer>

templates/web/sponsor.html.twig

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{% extends "layout.html.twig" %}
2+
3+
{% block content %}
4+
<section class="row">
5+
<section class="col-lg-12">
6+
<h2 class="title">Sponsoring Packagist.org &amp; Composer</h2>
7+
</section>
8+
<section class="col-lg-6">
9+
<div>
10+
<p>Packagist.org and Composer serve millions of PHP developers worldwide, handling billions of package installs every year. Keeping this critical infrastructure running, secure, and continuously improved requires sustainable funding.</p>
11+
<h3>How We Fund Open Source</h3>
12+
<p>We have built a sustainable model: Revenue from <a href="https://packagist.com">Private Packagist</a> subscriptions directly fund the development and operations of Packagist.org and Composer. This approach allows us to maintain our independence and focus our energy on building great tools rather than constant fundraising.</p>
13+
<p>Private Packagist offers businesses private package hosting, enhanced security and compliance features, mirroring of other third party repositories, and advanced dependency management tools. When you subscribe, you're not just getting powerful features for your team, you are directly supporting the open source ecosystem you depend on.</p>
14+
<h3>Support the Ecosystem</h3>
15+
<p><strong>For businesses and teams:</strong> If your company relies on Composer and Packagist.org, subscribing to <a href="https://packagist.com">Private Packagist</a> is the most impactful way to support continued development while gaining valuable features that improve your workflow and security posture.</p>
16+
<p><strong>For individuals and smaller contributions:</strong> We also welcome support through <a href="https://github.com/sponsors/composer">GitHub Sponsors</a>, which is perfect for individual developers or one-time contributions.</p>
17+
<p><strong>For larger partnerships or custom arrangements:</strong> We're happy to discuss tailored solutions. Reach out to us at <a href="mailto:contact@packagist.org">contact@packagist.org</a>.</p>
18+
<p>Every subscription and donation helps us keep Composer and Packagist.org free, fast, and reliable for the entire PHP community. Thank you for your support!</p>
19+
</div>
20+
</section>
21+
</section>
22+
{% endblock %}

0 commit comments

Comments
 (0)