Download the PHP
package yii2-extensions/franken-php without Composer
On this page you can find all versions of the php package
yii2-extensions/franken-php. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.
Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.
In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories.
In this case some credentials are needed to access such packages.
Please use the auth.json textarea to insert credentials, if a package is coming from a private repository.
You can look here for more information.
Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
To use Composer is sometimes complicated. Especially for beginners.
Composer needs much resources. Sometimes they are not available on a simple webspace.
If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Supercharge your Yii2 applications with FrankenPHP blazing-fast HTTP server HTTP/2, HTTP/3, automatic memory management, and worker mode for ultimate performance
## Features
## Demo
[](https://github.com/yii2-extensions/app-basic/tree/franken-php)
Explore the ready-to-run Yii2 + FrankenPHP application template.
### Installation
### Quick start
Create your FrankenPHP entry point (`web/index.php`)
### FrankenPHP configuration
Create `Caddyfile` in your project root (worker mode)
> [!WARNING]
> **Note:** Using custom certificates (like `tls ./web/ssl/localhost.pem ./web/ssl/localhost-key.pem`) avoids browser trust warnings that occur with Caddy's automatic self-signed certificates.
> For local development, consider using [mkcert](https://github.com/FiloSottile/mkcert) to generate trusted local certificates.
> If you want to use Caddy's automatic self-signed certificates for local development, you can remove this line.
### 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/php/frankenphp/releases) or copy this line into your terminal to automatically
install the version appropriate for your platform.
To run your application, you can use the following command.
### Docker
Alternatively, [Docker images](https://frankenphp.dev/docs/docker/) are available.
#### Worker mode
Gitbash/Windows
> **Note:** Paths in the example (`//k/yii2-extensions/app-basic`) are for demonstration purposes only.
> Replace them with the actual path to your Yii2 project on your system.
Linux/WSL
> [!IMPORTANT]
> Your application will be available at `https://localhost:8443` or at the address set in the `Caddyfile`.
### Development & Debugging
For enhanced debugging capabilities and proper time display in FrankenPHP, install the worker debug extension.
Add the following to your development configuration (`config/web.php`):
### File Upload Handling
For enhanced file upload support in worker environments, use the PSR-7 bridge UploadedFile class instead of the standard
Yii2 implementation.
## Documentation
For detailed configuration options and advanced usage.
- ๐ [Installation Guide](docs/installation.md)
- โ๏ธ [Configuration Reference](docs/configuration.md)
- ๐งช [Testing Guide](docs/testing.md)
- ๐ ๏ธ [Development Guide](docs/development.md)
## Package information
[](https://www.php.net/releases/8.1/en.php)
[](https://github.com/yiisoft/yii2/tree/2.0.53)
[](https://github.com/yiisoft/yii2/tree/22.0)
[](https://packagist.org/packages/yii2-extensions/franken-php)
[](https://packagist.org/packages/yii2-extensions/franken-php)
## Quality code
[](https://codecov.io/github/yii2-extensions/franken-php)
[](https://github.com/yii2-extensions/franken-php/actions/workflows/static.yml)
[](https://github.com/yii2-extensions/franken-php/actions/workflows/linter.yml)
[](https://github.styleci.io/repos/1031393416?branch=main)
## Our social networks
[](https://x.com/Terabytesoftw)
## License
[](LICENSE)
Composer command for our command line client (download client)This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free.Standard composer command
The package yii2-extensions/franken-php contains the following files
Loading the files please wait ...
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.