{"id":18534413,"url":"https://github.com/nanobox-io/nanobox-engine-php","last_synced_at":"2025-04-09T15:31:38.739Z","repository":{"id":2673095,"uuid":"41887530","full_name":"nanobox-io/nanobox-engine-php","owner":"nanobox-io","description":"Engine for running PHP apps on Nanobox","archived":false,"fork":false,"pushed_at":"2019-08-07T21:56:44.000Z","size":353,"stargazers_count":18,"open_issues_count":23,"forks_count":15,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-24T08:41:26.632Z","etag":null,"topics":["developer-tools","devtools","docker","nanobox","php-engine","php-extension","php-interpreter","php-settings","quickstart","zend-extension"],"latest_commit_sha":null,"homepage":"https://nanobox.io","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nanobox-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-03T22:48:34.000Z","updated_at":"2025-02-11T21:32:05.000Z","dependencies_parsed_at":"2022-08-06T12:30:59.668Z","dependency_job_id":null,"html_url":"https://github.com/nanobox-io/nanobox-engine-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanobox-io%2Fnanobox-engine-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanobox-io%2Fnanobox-engine-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanobox-io%2Fnanobox-engine-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanobox-io%2Fnanobox-engine-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nanobox-io","download_url":"https://codeload.github.com/nanobox-io/nanobox-engine-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248057992,"owners_count":21040672,"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":["developer-tools","devtools","docker","nanobox","php-engine","php-extension","php-interpreter","php-settings","quickstart","zend-extension"],"created_at":"2024-11-06T19:15:42.854Z","updated_at":"2025-04-09T15:31:38.247Z","avatar_url":"https://github.com/nanobox-io.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP [![Build Status](https://travis-ci.org/nanobox-io/nanobox-engine-php.svg)](https://travis-ci.org/nanobox-io/nanobox-engine-php)\n\nThis is a generic PHP engine used to launch PHP web and worker services on [Nanobox](http://nanobox.io). It exposes a wide collection configuration options generally handled in the php.ini and other configuration files. Both PHP settings and web server settings are available.\n\n## Usage\nTo use this engine, specify in the boxfile.yml:\n```yaml\nrun.config:\n  engine: php\n```\n\n## Composer\nThis engine uses [Composer](https://getcomposer.org) to manage dependencies. If a composer.json file exists at the root of your application, dependencies will be fetched during a build.\nThe composer install command can be customized during the build process using a setting in the boxfile.yml.\n```yaml\nrun.config:\n  engine: php\n  engine.config:\n    composer_install: \"composer install --no-interaction --prefer-source\"\n```\n\n## Basic Configuration\n\nThis engine exposes configuration options through the [boxfile.yml](http://docs.nanobox.io/boxfile/), a yaml config file used to provision and configure your app's platform.\n\n##### *Advanced Configuration Options*\nThis Readme outlines only the most basic and commonly used settings. For the full list of available configuration options, view the **[Advanced PHP Configuration options](https://github.com/nanobox-io/nanobox-engine-php/blob/master/doc/advanced-php-config.md)**.\n\n#### Overview of Basic boxfile.yml Configuration Options\n```yaml\nrun.config:\n  engine.config:\n    # PHP Settings\n    runtime: 'php-7.0'\n    extensions:\n      - curl\n      - gd\n      - mbstring\n      - pdo_mysql\n    zend_extensions:\n      - ioncube_loader\n      - opcache\n    max_execution_time: 30\n    max_input_time: 30\n    error_reporting: E_ALL\n    display_errors: 'stderr'\n    post_max_size: '8M'\n    upload_max_filesize: '2M'\n    file_uploads: true\n\n    # Web Server Settings\n    webserver: 'apache'\n\n    # Apache Settings\n    apache_document_root: '/'\n    apache_php_interpreter: fpm\n    apache_access_log: false\n```\n\n##### Quick Links\n[Web Server Settings](#web-server-settings)  \n[PHP Settings](#php-settings)  \n[Apache Settings](#apache-settings)  \n\n### Web Server Settings\nThe following setting is used to select which web server to use in your application.\n\n- [webserver](#webserver)\n\n---\n\n#### webserver\nThe following web servers are available:\n\n- apache *(default)*\n- nginx\n- builtin *([PHP's built-in web server](http://php.net/manual/en/features.commandline.webserver.php) available in 5.4+)*\n\n```yaml\nrun.config:\n  engine.config:\n    webserver: 'apache'\n```\n\n*Web server specific settings are available in the following sections of the Advanced PHP Configuration doc:*\n\n[Apache Settings](https://github.com/nanobox-io/nanobox-engine-php/blob/master/doc/advanced-php-config.md#apache-settings)  \n[Nginx Settings](https://github.com/nanobox-io/nanobox-engine-php/blob/master/doc/advanced-php-config.md#nginx-settings)  \n[Built-In PHP Web Server Settings](https://github.com/nanobox-io/nanobox-engine-php/blob/master/doc/advanced-php-config.md#built-in-php-web-server-settings)\n\n---\n\n### PHP Settings\nThe following settings are typically configured in the php.ini. When using Nanobox, these are configured in the boxfile.yml.\n\n- [runtime](#runtime)\n- [extensions](#extensions)\n- [zend_extensions](#zend_extensions)\n- [max_execution_time](#max_execution_time)\n- [max_input_time](#max_input_time)\n- [error_reporting](#error_reporting)\n- [display_errors](#display_errors)\n- [post_max_size](#post_max_size)\n- [upload_max_filesize](#upload_max_filesize)\n- [file_uploads](#file_uploads)\n- [date_timezone](#date_timezone)\n\n---\n\n#### runtime\nSpecifies which PHP runtime and version to use. The following runtimes are available:\n\n- php-5.3\n- php-5.4\n- php-5.5\n- php-5.6\n- php-7.0 *(default)*\n- php-7.1\n- php-7.2\n\n```yaml\nrun.config:\n  engine.config:\n    runtime: 'php-7.0'\n```\n\n---\n\n#### extensions\nSpecifies what PHP extensions should be included in your app's environment. To see what PHP extensions are available, view the [full list of available PHP extensions](https://github.com/nanobox-io/nanobox-engine-php/blob/master/doc/php-extensions.md).\n\n```yaml\nrun.config:\n  engine.config:\n    extensions:\n      - curl\n      - gd\n      - mbstring\n      - pdo_mysql\n```\n\n---\n\n#### zend_extensions\nSpecifies what Zend extensions should be included in your app's environment. To see what Zend extensions are available, view the [Zend Extensions section of the PHP extensions list](https://github.com/nanobox-io/nanobox-engine-php/blob/master/doc/php-extensions.md#zend-extensions).\n```yaml\nrun.config:\n  engine.config:\n    zend_extensions:\n      - ioncube_loader\n      - opcache\n```\n\n---\n\n#### max_execution_time\nSets the [`max_execution_time` PHP setting](http://www.php.net/manual/en/info.configuration.php#ini.max-execution-time).\n```yaml\nrun.config:\n  engine.config:\n    max_execution_time: 30\n```\n\n---\n\n#### max_input_time\nSets the [`max_input_time` PHP setting](http://www.php.net/manual/en/info.configuration.php#ini.max-input-time).\n```yaml\nrun.config:\n  engine.config:\n    max_input_time: 60\n```\n\n---\n\n#### error_reporting\nSets the [`error_reporting` PHP setting](http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting).\n```yaml\nrun.config:\n  engine.config:\n    error_reporting: E_ALL\n```\n\n---\n\n#### display_errors\nSets the [`display_errors` PHP setting](http://us3.php.net/manual/en/errorfunc.configuration.php#ini.display-errors).\n```yaml\nrun.config:\n  engine.config:\n    display_errors: 'stderr'\n```\n\n---\n\n#### post_max_size\nSets the [`post_max_size` PHP setting](http://www.php.net/manual/en/ini.core.php#ini.post-max-size).\n```yaml\nrun.config:\n  engine.config:\n    post_max_size: '8M'\n```\n\n---\n\n#### upload_max_filesize\nSets the [`upload_max_filesize` PHP setting](http://php.net/manual/en/ini.core.php#ini.upload-max-filesize).\n```yaml\nrun.config:\n  engine.config:\n    upload_max_filesize: '2M'\n```\n\n---\n\n#### file_uploads\nSets the [`file_uploads` PHP setting](http://php.net/manual/en/ini.core.php#ini.file-uploads).\n```yaml\nrun.config:\n  engine.config:\n    file_uploads: true\n```\n\n---\n\n#### date_timezone\nSets the [`date.timezone` PHP setting](http://php.net/manual/en/datetime.configuration.php#ini.date.timezone).\n```yaml\nrun.config:\n  engine.config:\n    date_timezone: 'US/central'\n```\n\n---\n\n### Apache Settings\nThe following settings are used to configure Apache. These only apply when using `apache` as your `webserver`.\n\n- [apache_php_interpreter](#apache_php_interpreter)\n- [apache_access_log](#apache_access_log)\n\n---\n\n#### apache_php_interpreter\n\nSpecify which PHP interpreter you would like Apache to use.\n\n- fpm *(default)*\n- mod_php\n\n```yaml\nrun.config:\n  engine.config:\n    apache_php_interpreter: fpm\n```\n\n---\n\n#### apache_access_log\nEnables or disables the Apache Access log.\n```yaml\nrun.config:\n  engine.config:\n    apache_access_log: false\n```\n\n---\n\n## Help \u0026 Support\nThis is a generic (non-framework-specific) PHP engine provided by [Nanobox](http://nanobox.io). If you need help with this engine, you can reach out to us in the [#nanobox IRC channel](http://webchat.freenode.net/?channels=nanobox). If you are running into an issue with the engine, feel free to [create a new issue on this project](https://github.com/nanobox-io/nanobox-engine-php/issues/new).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanobox-io%2Fnanobox-engine-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnanobox-io%2Fnanobox-engine-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanobox-io%2Fnanobox-engine-php/lists"}