{"id":21719866,"url":"https://github.com/mako-framework/haste","last_synced_at":"2025-10-26T15:14:30.307Z","repository":{"id":220019408,"uuid":"750540411","full_name":"mako-framework/haste","owner":"mako-framework","description":"(Experimental) Boost your application performance by running it on a application server like FrankenPHP.","archived":false,"fork":false,"pushed_at":"2025-03-22T22:01:08.000Z","size":37,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T20:51:47.593Z","etag":null,"topics":["frankenphp","mako-framework","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mako-framework.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-30T20:42:49.000Z","updated_at":"2025-03-22T22:01:11.000Z","dependencies_parsed_at":"2024-12-31T00:19:19.010Z","dependency_job_id":"89e5a4e8-4374-4917-8748-eece80ad04ad","html_url":"https://github.com/mako-framework/haste","commit_stats":null,"previous_names":["mako-framework/afterburner","mako-framework/haste"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mako-framework%2Fhaste","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mako-framework%2Fhaste/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mako-framework%2Fhaste/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mako-framework%2Fhaste/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mako-framework","download_url":"https://codeload.github.com/mako-framework/haste/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248631728,"owners_count":21136560,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["frankenphp","mako-framework","php"],"created_at":"2024-11-26T01:42:44.358Z","updated_at":"2025-10-26T15:14:30.301Z","avatar_url":"https://github.com/mako-framework.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Haste\n\n[![Static analysis](https://github.com/mako-framework/haste/actions/workflows/static-analysis.yml/badge.svg)](https://github.com/mako-framework/haste/actions/workflows/static-analysis.yml)\n\nThe `mako/haste` package allows you to boost your application performance by running it on an application server like [FrankenPHP](https://frankenphp.dev/).\n\nThe performance gains will vary based on the application but a basic \"Hello, world!\" application will run about 4-5 times faster than on a php+apache setup.\n\n\u003e It is important to make sure that you do not leak data between requests by using static variables!\n\n## Requirements\n\nMako 11.0 or greater.\n\n## Setup\n\nFirst you'll need to install the package as a dependency to your project.\n\n```\ncomposer require mako/haste\n```\n\nNext you'll have to replace the `index.php` contents with the following.\n\n```php\n\u003c?php\n\nuse mako\\haste\\FrankenPHP;\nuse mako\\application\\web\\Application;\n\n/**\n * Include the application init file.\n */\ninclude dirname(__DIR__) . '/app/init.php';\n\n/*\n * Start and run the application.\n */\nFrankenPHP::run(new Application(MAKO_APPLICATION_PATH));\n```\n\nFinally, you should disable auto-registration of the error handler by setting `error_handler.register` to `false` in `app/config/application.php`.\n\nThat's it! Enjoy your (hopefully) improved performance 🎉\n\n## Docker setup\n\nThe following basic dockerfile will help to get you started:\n\n```dockerfile\nFROM dunglas/frankenphp:1.4.4-php8.4\n\nARG USER=haste\n\nRUN install-php-extensions \\\n\topcache \\\n\tpdo_mysql\n\nRUN mv \"$PHP_INI_DIR/php.ini-production\" \"$PHP_INI_DIR/php.ini\"\n\nCOPY . /app\n\nRUN mv ./php-overrides.ini /usr/local/etc/php/conf.d/.\n\nRUN useradd ${USER}\nRUN setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/frankenphp\nRUN chown -R ${USER}:${USER} /data/caddy \u0026\u0026 chown -R ${USER}:${USER} /config/caddy\nRUN chown -R ${USER}:${USER} ./app/storage\n\nUSER ${USER}\n\nENV SERVER_NAME=:80\nENV FRANKENPHP_CONFIG=\"worker ./public/index.php\"\n#ENV CADDY_GLOBAL_OPTIONS=\"debug\"\n```\n\n\u003e Note that the example setup includes a `php-overrides.ini` file with custom OPcache settings for optimal performance. These settings should work well in most cases, but feel free to customize them as needed.\n\n```ini\nexpose_php = Off\nzend.exception_ignore_args=0\nmemory_limit=512M\nregister_argc_argv = Off\n\nopcache.enable=1\nopcache.memory_consumption=256\nopcache.interned_strings_buffer=16\nopcache.max_accelerated_files=20000\nopcache.validate_timestamps=0\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmako-framework%2Fhaste","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmako-framework%2Fhaste","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmako-framework%2Fhaste/lists"}