{"id":15525433,"url":"https://github.com/robertbasic/ze-example","last_synced_at":"2025-06-11T22:34:12.067Z","repository":{"id":138844568,"uuid":"84818997","full_name":"robertbasic/ze-example","owner":"robertbasic","description":"Zend Expressive example, with broken middleware","archived":false,"fork":false,"pushed_at":"2017-03-13T11:30:46.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-18T10:13:00.032Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/robertbasic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2017-03-13T11:30:24.000Z","updated_at":"2017-03-13T11:30:47.000Z","dependencies_parsed_at":"2023-03-21T02:18:30.727Z","dependency_job_id":null,"html_url":"https://github.com/robertbasic/ze-example","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/robertbasic%2Fze-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertbasic%2Fze-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertbasic%2Fze-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertbasic%2Fze-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robertbasic","download_url":"https://codeload.github.com/robertbasic/ze-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240229884,"owners_count":19768584,"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":[],"created_at":"2024-10-02T10:57:32.264Z","updated_at":"2025-02-22T19:41:12.059Z","avatar_url":"https://github.com/robertbasic.png","language":"PHP","readme":"# Expressive Skeleton and Installer\n\n[![Build Status](https://secure.travis-ci.org/zendframework/zend-expressive-skeleton.svg?branch=master)](https://secure.travis-ci.org/zendframework/zend-expressive-skeleton)\n[![Coverage Status](https://coveralls.io/repos/github/zendframework/zend-expressive-skeleton/badge.svg?branch=master)](https://coveralls.io/github/zendframework/zend-expressive-skeleton?branch=master)\n\n*Begin developing PSR-7 middleware applications in seconds!*\n\n[zend-expressive](https://github.com/zendframework/zend-expressive) builds on\n[zend-stratigility](https://github.com/zendframework/zend-stratigility) to\nprovide a minimalist PSR-7 middleware framework for PHP with routing, DI\ncontainer, optional templating, and optional error handling capabilities.\n\nThis installer will setup a skeleton application based on zend-expressive by\nchoosing optional packages based on user input as demonstrated in the following\nscreenshot:\n\n![screenshot-installer](https://cloud.githubusercontent.com/assets/459648/10410494/16bdc674-6f6d-11e5-8190-3c1466e93361.png)\n\nThe user selected packages are saved into `composer.json` so that everyone else\nworking on the project have the same packages installed. Configuration files and\ntemplates are prepared for first use. The installer command is removed from\n`composer.json` after setup succeeded, and all installer related files are\nremoved.\n\n## Getting Started\n\nStart your new Expressive project with composer:\n\n```bash\n$ composer create-project zendframework/zend-expressive-skeleton \u003cproject-path\u003e\n```\n\nAfter choosing and installing the packages you want, go to the\n`\u003cproject-path\u003e` and start PHP's built-in web server to verify installation:\n\n```bash\n$ composer serve\n```\n\nYou can then browse to http://localhost:8080.\n\n\u003e ### Setting a timeout\n\u003e\n\u003e Composer commands time out after 300 seconds (5 minutes). On Linux-based\n\u003e systems, the `php -S` command that `composer serve` spawns continues running\n\u003e as a background process, but on other systems halts when the timeout occurs.\n\u003e\n\u003e If you want the server to live longer, you can use the\n\u003e `COMPOSER_PROCESS_TIMEOUT` environment variable when executing `composer\n\u003e serve` to extend the timeout. As an example, the following will extend it\n\u003e to a full day:\n\u003e\n\u003e ```bash\n\u003e $ COMPOSER_PROCESS_TIMEOUT=86400 composer serve\n\u003e ```\n\n## Troubleshooting\n\nIf the installer fails during the ``composer create-project`` phase, please go\nthrough the following list before opening a new issue. Most issues we have seen\nso far can be solved by `self-update` and `clear-cache`.\n\n1. Be sure to work with the latest version of composer by running `composer self-update`.\n2. Try clearing Composer's cache by running `composer clear-cache`.\n\nIf neither of the above help, you might face more serious issues:\n\n- Info about the [zlib_decode error](https://github.com/composer/composer/issues/4121).\n- Info and solutions for [composer degraded mode](https://getcomposer.org/doc/articles/troubleshooting.md#degraded-mode).\n\n## Application Development Mode Tool\n\nThis skeleton comes with [zf-development-mode](https://github.com/zfcampus/zf-development-mode). \nIt provides a composer script to allow you to enable and disable development mode.\n\n### To enable development mode\n\n**Note:** Do NOT run development mode on your production server!\n\n```bash\n$ composer development-enable\n```\n\n**Note:** Enabling development mode will also clear your configuration cache, to \nallow safely updating dependencies and ensuring any new configuration is picked \nup by your application.\n\n### To disable development mode\n\n```bash\n$ composer development-disable\n```\n\n### Development mode status\n\n```bash\n$ composer development-status\n```\n\n## Configuration caching\n\nBy default, the skeleton will create a configuration cache in\n`data/config-cache.php`. When in development mode, the configuration cache is\ndisabled, and switching in and out of development mode will remove the\nconfiguration cache.\n\nYou may need to clear the configuration cache in production when deploying if\nyou deploy to the same directory. You may do so using the following:\n\n```bash\n$ composer clear-config-cache\n```\n\nYou may also change the location of the configuration cache itself by editing\nthe `config/config.php` file and changing the `config_cache_path` entry of the\nlocal `$cacheConfig` variable.\n\n## Skeleton Development\n\nThis section applies only if you cloned this repo with `git clone`, not when you\ninstalled expressive with `composer create-project ...`.\n\nIf you want to run tests against the installer, you need to clone this repo and\nsetup all dependencies with composer.  Make sure you **prevent composer running\nscripts** with `--no-scripts`, otherwise it will remove the installer and all\ntests.\n\n```bash\n$ composer update --no-scripts\n$ composer test\n```\n\nPlease note that the installer tests remove installed config files and templates\nbefore and after running the tests.\n\nBefore contributing read [the contributing guide](CONTRIBUTING.md).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertbasic%2Fze-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobertbasic%2Fze-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertbasic%2Fze-example/lists"}