{"id":26714987,"url":"https://github.com/tarlepp/silex-backend","last_synced_at":"2025-04-13T23:48:09.201Z","repository":{"id":147146999,"uuid":"50283455","full_name":"tarlepp/silex-backend","owner":"tarlepp","description":"REST API with Silex","archived":false,"fork":false,"pushed_at":"2024-02-08T19:24:39.000Z","size":188,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T13:51:39.236Z","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/tarlepp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2016-01-24T10:56:48.000Z","updated_at":"2017-02-07T21:56:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"9a3610b4-dc2d-4183-a2f1-772aba11d635","html_url":"https://github.com/tarlepp/silex-backend","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/tarlepp%2Fsilex-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarlepp%2Fsilex-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarlepp%2Fsilex-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarlepp%2Fsilex-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tarlepp","download_url":"https://codeload.github.com/tarlepp/silex-backend/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248799713,"owners_count":21163398,"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-27T13:51:41.977Z","updated_at":"2025-04-13T23:48:09.193Z","avatar_url":"https://github.com/tarlepp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# What is this?\n\nSimple JSON API which is build on top of [Silex](http://silex.sensiolabs.org/) framework.\n\n## Main points\n* This is just an API, nothing else\n* Only JSON responses from API\n* JWT authentication\n\n### TODO\n- [x] Configuration for each environment and/or developer\n- [x] Authentication via JWT\n- [x] \"Automatic\" API doc generation\n- [x] Database connection (Doctrine dbal + orm)\n- [x] Console tools (dbal, migrations, orm)\n- [x] Docker support\n- [ ] \n- [ ] \n- [ ] \n\n## Requirements\n* PHP 5.5.x\n* Apache / nginx / IIS / Lighttpd see configuration information [here](http://silex.sensiolabs.org/doc/web_servers.html) \n\n## Development\n* Use your favorite IDE and get checkout from git\n* Open terminal, go to folder where you make that checkout and run following commands\n\n```bash\n$ curl -sS https://getcomposer.org/installer | php\n$ php composer.phar install\n```\n\n## Installation\n* Open terminal and clone this repository to your server\n* Create web-server configuration which points to ```web``` folder\n* Ensure that ```var``` folder is writable by web-server user\n\n### Configuration\nAdd your ```local.yml``` configuration file to some (or all) following directories:\n * ```resources/config/common```\n * ```resources/config/dev```\n * ```resources/config/prod```\n * ```resources/config/cli-dev```\n * ```resources/config/cli-prod```\n\nWithin this file you can override any environment or common configuration value as you like. Basically first thing to\ndo is define _your_ database settings - without these you can't basically do anything...\n\n### Database initialization\nThis can be done with following command:\n```\n./bin/console migrations:migrate\n```\n\n### Possible \"failures\"\n* Missing ```var``` directory? Create it and check that it has proper write access in other words just do ```chmod 777 var``` \n\n## Nice to know things\n```GET http://yoururl/_dump```\n* generates pimple.json for autocomplete \n* See [this](https://github.com/Sorien/silex-pimple-dumper) for more info\n\n```./bin/console orm:convert:mapping --from-database --namespace=\"App\\\\Entities\\\\\" annotation ./src``` \n* Generate Doctrine entities from database\n\n## Contributing\nPlease see the [CONTRIBUTING.md](CONTRIBUTING.md) file for guidelines.\n\n## Author\n[Tarmo Leppänen](https://github.com/tarlepp)\n\n## LICENSE\n\n[The MIT License (MIT)](LICENSE)\n\nCopyright (c) 2016 Tarmo Leppänen\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarlepp%2Fsilex-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftarlepp%2Fsilex-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarlepp%2Fsilex-backend/lists"}