Skip to content

Commit

Permalink
add symfony bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Dec 31, 2024
1 parent 0618f70 commit 8dd7bf6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {themes as prismThemes} from 'prism-react-renderer';
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'PSX',
tagline: 'An innovative PHP framework dedicated to build fully typed REST APIs.',
tagline: 'A PHP framework and set of components to build fully typed REST APIs.',
url: 'https://phpsx.org',
baseUrl: '/',
onBrokenLinks: 'throw',
Expand Down
13 changes: 10 additions & 3 deletions src/components/HomepageFeatures.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default function HomepageFeatures() {
<p className="hero__subtitle">PSX allows you to define complete type-safe controllers which map
every value from the HTTP request to an argument.
This idea is inspired by great frameworks like <a href="https://spring.io/">Spring</a> or <a
href="https://nestjs.com/">NestJS</a>.</p>
href="https://nestjs.com/">NestJS</a>.</p>
</div>
<div className="col col--12">
<CodeBlock language="php" title="src/Controller/Population.php" showLineNumbers>{`class Population extends ControllerAbstract
Expand Down Expand Up @@ -157,15 +157,22 @@ export default function HomepageFeatures() {
<hr></hr>
<h1 className="hero__title">Client SDK</h1>
<p className="hero__subtitle">One of the innovative features of PSX is, that you can automatically
generate a client SDK for your API. Through a simple command you can generate
a complete type-safe client SDK to communicate with your API.</p>
generate a client SDK for your API. Through a simple command you can generate
a complete type-safe client SDK to communicate with your API.</p>
</div>
<div className="col col--12">
<CodeBlock language="text" title="Console" showLineNumbers>{`php bin/psx generate:sdk spec-openapi
php bin/psx generate:sdk client-typescript
php bin/psx generate:sdk client-php`}</CodeBlock>
</div>
</div>
<div className="col col--12 text--center">
<hr></hr>
<h1 className="hero__title">Symfony Bundle</h1>
<p className="hero__subtitle">In case you are a fan of <a href="https://symfony.com/">Symfony</a> you can
simply use the <a href="https://github.com/apioo/psx-api-bundle">PSX API Bundle</a> to integrate all
PSX features.</p>
</div>
</div>
</section>
);
Expand Down

0 comments on commit 8dd7bf6

Please sign in to comment.