Skip to content
Merged
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
54 changes: 39 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,43 @@ FrankenPHP can also be used as a standalone Go library to embed PHP in any app u

## Getting Started

### Standalone Binary

We provide static FrankenPHP binaries for Linux and macOS
containing [PHP 8.4](https://www.php.net/releases/8.4/en.php) and most popular PHP extensions.

On Windows, use [WSL](https://learn.microsoft.com/windows/wsl/) to run FrankenPHP.

[Download FrankenPHP](https://github.com/dunglas/frankenphp/releases) or copy this line into your
terminal to automatically install the version appropriate for your platform:

```console
curl https://frankenphp.dev/install.sh | sh
mv frankenphp /usr/local/bin/
```

To serve the content of the current directory, run:

```console
frankenphp php-server
```

You can also run command-line scripts with:

```console
frankenphp php-cli /path/to/your/script.php
```

> ![WARNING]
>
> In production, prefer using [the Docker images](#docker), [the Brew package](#homebrew)
> or [compiling FrankenPHP from sources](https://frankenphp.dev/docs/compile/).
> The standalone binary is provided for development and testing purposes.

### Docker

Alternatively, [Docker images](https://frankenphp.dev/docs/docker/) are available:

```console
docker run -v .:/app/public \
-p 80:80 -p 443:443 -p 443:443/udp \
Expand All @@ -31,19 +66,14 @@ Go to `https://localhost`, and enjoy!
> Do not attempt to use `https://127.0.0.1`. Use `https://localhost` and accept the self-signed certificate.
> Use the [`SERVER_NAME` environment variable](docs/config.md#environment-variables) to change the domain to use.

### Standalone Binary
### Homebrew

If you prefer not to use Docker, we provide standalone FrankenPHP binaries for Linux and macOS
containing [PHP 8.4](https://www.php.net/releases/8.4/en.php) and most popular PHP extensions.
FrankenPHP is also available as a [Homebrew](https://brew.sh) package for macOS and Linux.

On Windows, use [WSL](https://learn.microsoft.com/windows/wsl/) to run FrankenPHP.

[Download FrankenPHP](https://github.com/dunglas/frankenphp/releases) or copy this line into your
terminal to automatically install the version appropriate for your platform:
To install it:

```console
curl https://frankenphp.dev/install.sh | sh
mv frankenphp /usr/local/bin/
brew install dunglas/frankenphp/frankenphp
```

To serve the content of the current directory, run:
Expand All @@ -52,12 +82,6 @@ To serve the content of the current directory, run:
frankenphp php-server
```

You can also run command-line scripts with:

```console
frankenphp php-cli /path/to/your/script.php
```

## Docs

* [Classic mode](https://frankenphp.dev/docs/classic/)
Expand Down
52 changes: 38 additions & 14 deletions docs/fr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,42 @@ Découvrez plus de détails sur ce serveur d’application dans le replay de cet

## Pour Commencer

### Binaire autonome

Si vous préférez ne pas utiliser Docker, nous fournissons des binaires autonomes de FrankenPHP pour Linux et macOS
contenant [PHP 8.4](https://www.php.net/releases/8.4/fr.php) et la plupart des extensions PHP populaires.

Sous Windows, utilisez [WSL](https://learn.microsoft.com/windows/wsl/) pour exécuter FrankenPHP.

[Téléchargez FrankenPHP](https://github.com/dunglas/frankenphp/releases) ou copiez cette ligne dans votre terminal pour installer automatiquement la version appropriée à votre plateforme :

```console
curl https://frankenphp.dev/install.sh | sh
mv frankenphp /usr/local/bin/
```

Pour servir le contenu du répertoire courant, exécutez :

```console
frankenphp php-server
```

Vous pouvez également exécuter des scripts en ligne de commande avec :

```console
frankenphp php-cli /path/to/your/script.php
```

> [!WARNING]
>
> En production, préférez utiliser [les images Docker](#docker), [le paquet Brew](#homebrew)
> ou [compiler FrankenPHP à partir des sources](https://frankenphp.dev/docs/fr/compile/).
> Le binaire autonome est fourni à des fins de développement et de test.

### Docker

Des [images Docker](https://frankenphp.dev/docs/fr/docker/) sont également disponibles :

```console
docker run -v $PWD:/app/public \
-p 80:80 -p 443:443 -p 443:443/udp \
Expand All @@ -31,18 +65,14 @@ Rendez-vous sur `https://localhost`, c'est parti !
> Ne tentez pas d'utiliser `https://127.0.0.1`. Utilisez `https://localhost` et acceptez le certificat auto-signé.
> Utilisez [la variable d'environnement `SERVER_NAME`](config.md#variables-denvironnement) pour changer le domaine à utiliser.

### Binaire autonome
### Homebrew

Si vous préférez ne pas utiliser Docker, nous fournissons des binaires autonomes de FrankenPHP pour Linux et macOS
contenant [PHP 8.4](https://www.php.net/releases/8.4/fr.php) et la plupart des extensions PHP populaires.
FrankenPHP est également disponible sous forme de paquet [Homebrew](https://brew.sh) pour macOS et Linux.

Sous Windows, utilisez [WSL](https://learn.microsoft.com/windows/wsl/) pour exécuter FrankenPHP.

[Téléchargez FrankenPHP](https://github.com/dunglas/frankenphp/releases) ou copiez cette ligne dans votre terminal pour installer automatiquement la version appropriée à votre plateforme :
Pour l'installer :

```console
curl https://frankenphp.dev/install.sh | sh
mv frankenphp /usr/local/bin/
brew install dunglas/frankenphp/frankenphp
```

Pour servir le contenu du répertoire courant, exécutez :
Expand All @@ -51,12 +81,6 @@ Pour servir le contenu du répertoire courant, exécutez :
frankenphp php-server
```

Vous pouvez également exécuter des scripts en ligne de commande avec :

```console
frankenphp php-cli /path/to/your/script.php
```

## Documentation

* [Le mode worker](worker.md)
Expand Down