{"id":26722974,"url":"https://github.com/useallfive/doctrine-web-console","last_synced_at":"2026-03-07T08:03:31.730Z","repository":{"id":11473961,"uuid":"13942241","full_name":"UseAllFive/doctrine-web-console","owner":"UseAllFive","description":"Doctrine Web Console for Silex","archived":false,"fork":false,"pushed_at":"2014-01-13T23:11:40.000Z","size":456,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":25,"default_branch":"master","last_synced_at":"2025-04-14T06:55:27.120Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","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/UseAllFive.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":"2013-10-29T00:14:11.000Z","updated_at":"2023-03-15T14:34:55.000Z","dependencies_parsed_at":"2022-09-05T22:01:07.002Z","dependency_job_id":null,"html_url":"https://github.com/UseAllFive/doctrine-web-console","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UseAllFive%2Fdoctrine-web-console","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UseAllFive%2Fdoctrine-web-console/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UseAllFive%2Fdoctrine-web-console/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UseAllFive%2Fdoctrine-web-console/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UseAllFive","download_url":"https://codeload.github.com/UseAllFive/doctrine-web-console/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248837281,"owners_count":21169374,"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":"2025-03-27T20:38:28.275Z","updated_at":"2026-03-07T08:03:31.691Z","avatar_url":"https://github.com/UseAllFive.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Doctrine Web Console for Silex\n==============================\n[![SensioLabsInsight](https://insight.sensiolabs.com/projects/2bb3c50e-5035-4a76-bcf9-9aaf722aea3e/small.png)](https://insight.sensiolabs.com/projects/2bb3c50e-5035-4a76-bcf9-9aaf722aea3e)\n\nThe doctrine web console allows one to execute doctrine console commands via web browser. This is especially useful when one is required to execute commands in an enviroment which does not allow shell access (e.g. [Google App Engine](https://developers.google.com/appengine/)).\n\n## Installation\nVia composer:\n```bash\nphp composer.phar require useallfive/doctrine-web-console dev-master\n```\nMount the controller provider to the /console path.\n```php\n\u003c?php\n$app = new Silex\\Application();\n// ...\n$app-\u003emount(\n        '/console',\n        new \\UseAllFive\\DoctrineWebConsole\\ConsoleControllerProvider()\n    )\n;\n$app-\u003erun();\n```\nYou're all set! Visit the the `/console` url of your site to use.\n\n## Specifying a command path\nIf a command path is not specified, commands will be executed in the current working directory of the console controller (the web directory of your project). While this is fine for most commands, it's not ideal for a command which requires a path. You can specify a path in the first argument of the `ConsoleControllerProvider` constructor.\n```php\n\u003c?php\n$app = new Silex\\Application();\n// ...\n$app-\u003emount(\n        '/console',\n        new \\UseAllFive\\DoctrineWebConsole\\ConsoleControllerProvider(__DIR__)\n    )\n;\n$app-\u003erun();\n```\n\n## Adding commands\nAdding your own Doctrine commands to the web console is trivial. We'll add the [Doctrine DataFixtures Command](https://github.com/UseAllFive/doctrine-data-fixtures-command) for this example.\n\nThe second argument of the `ConsoleControllerProvider` constructor takes an array of `Symfony\\Component\\Console\\Command\\Command` instances which is then passed to the Doctrine `ConsoleRunner`.\n```php\n\u003c?php\n$app = new Silex\\Application();\n// ...\n$app-\u003emount(\n        '/console',\n        new \\UseAllFive\\DoctrineWebConsole\\ConsoleControllerProvider(\n            __DIR__,\n            array(\n                new \\UseAllFive\\Command\\LoadDataFixturesDoctrineCommand(),\n            )\n        )\n    )\n;\n$app-\u003erun();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuseallfive%2Fdoctrine-web-console","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuseallfive%2Fdoctrine-web-console","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuseallfive%2Fdoctrine-web-console/lists"}