Skip to content

Commit 7a6ee64

Browse files
committed
Add sponsor page
1 parent 09a10a0 commit 7a6ee64

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

src/Controller/HomeController.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ public function index(string $projectDir): Response
3838
]);
3939
}
4040

41+
#[Route("/sponsor/", name: "sponsor")]
42+
public function sponsor(): Response
43+
{
44+
return $this->render('sponsor.html.twig', ['page' => 'sponsor']);
45+
}
46+
4147
#[Route("/download/", name: "download")]
4248
public function download(string $projectDir, Request $req): Response
4349
{

templates/index.html.twig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@
7171
aria-label="Go to packagist.com (external link)">
7272
<img style="width:240px" src="{{ app.request.basePath }}/img/private-packagist-logo-horizontal-2025.svg"
7373
alt="Private Packagist logo, a paper elephant and the text reads: Private Packagist"/>
74-
</a>
74+
</a><br />
75+
<a href="{{ path('sponsor') }}">Sponsor Composer &amp; Packagist.org</a>
7576
</p>
7677
<p>
7778
Logo by: Max Grigorian

templates/sponsor.html.twig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{% extends "layout.html.twig" %}
2+
3+
{% block content %}
4+
<h1 role="heading">Sponsoring Composer &amp; Packagist.org</h1>
5+
6+
<p>Composer and Packagist.org 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>
7+
<h2>How We Fund Open Source</h2>
8+
<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 Composer and Packagist.org. This approach allows us to maintain our independence and focus our energy on building great tools rather than constant fundraising.</p>
9+
<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>
10+
<h2>Support the Ecosystem</h2>
11+
<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>
12+
<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>
13+
<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>
14+
<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>
15+
{% endblock %}

0 commit comments

Comments
 (0)