{"id":22608760,"url":"https://github.com/marlosoft/silex-routing-provider","last_synced_at":"2025-03-28T22:43:54.177Z","repository":{"id":62524338,"uuid":"103502894","full_name":"marlosoft/silex-routing-provider","owner":"marlosoft","description":"Routing service provider for silex micro-framework using annotations","archived":false,"fork":false,"pushed_at":"2017-09-14T09:05:10.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-03T09:18:13.624Z","etag":null,"topics":["annotations","php","routing","silex"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marlosoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-14T07:51:21.000Z","updated_at":"2017-09-14T09:37:39.000Z","dependencies_parsed_at":"2022-11-02T14:01:20.054Z","dependency_job_id":null,"html_url":"https://github.com/marlosoft/silex-routing-provider","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marlosoft%2Fsilex-routing-provider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marlosoft%2Fsilex-routing-provider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marlosoft%2Fsilex-routing-provider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marlosoft%2Fsilex-routing-provider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marlosoft","download_url":"https://codeload.github.com/marlosoft/silex-routing-provider/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246112641,"owners_count":20725300,"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":["annotations","php","routing","silex"],"created_at":"2024-12-08T15:09:16.926Z","updated_at":"2025-03-28T22:43:54.156Z","avatar_url":"https://github.com/marlosoft.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Silex Routing Service Provider\n==============================\n\nRouting service provider for silex micro-framework using annotations.\nThis uses `sensio/framework-extra-bundle` and `doctrine/common` libraries\nto use annotation for routing just like in Symfony2 framework.\n\n## Installation\n* Use composer\n    ```bash\n    composer require marlosoft/silex-routing-provider\n    ```\n\n## Usage\n1. Add Doctrine's annotation registry loader to autoload\n    ```php\n    use Doctrine\\Common\\Annotations\\AnnotationRegistry;\n \n    $autoload = require('/path/to/vendor/autoload.php');\n    AnnotationRegistry::registerLoader([$autoload, 'loadClass']);\n    ```\n\n2. Register the service provider to your application\n    ```php\n    use Marlosoft\\Silex\\Provider\\RoutingServiceProvider;\n \n    $app = new Application();\n    $app-\u003eregister(new RoutingServiceProvider(), [\n      'routes.directories' =\u003e ['/path/to/controllers/directory/']\n    ]);\n    ```\n\n## Options\n\n* `routes.directories` (*required*) is an array of directory paths where the annotations are evaluated \n* `routes.cache` (*optional*) is the cache object that will be used to store the evaluated annotations.  \nThis is recommended in production deployments. Cache objects that can use used are `FilesystemCache` or `ApcuCache`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarlosoft%2Fsilex-routing-provider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarlosoft%2Fsilex-routing-provider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarlosoft%2Fsilex-routing-provider/lists"}