{"id":18593886,"url":"https://github.com/janstuemmel/slim3-doctrine-testing-example","last_synced_at":"2026-07-03T00:33:58.004Z","repository":{"id":92577421,"uuid":"70802880","full_name":"janstuemmel/slim3-doctrine-testing-example","owner":"janstuemmel","description":"Testing example for a slim3-doctrine setup with in-memory sqlite database","archived":false,"fork":false,"pushed_at":"2018-02-17T14:21:24.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-17T22:32:48.409Z","etag":null,"topics":["doctrine","php","slim3","slim3-doctrine-setup","slim3-doctrine-testing","testing"],"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/janstuemmel.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-13T12:12:12.000Z","updated_at":"2017-04-03T14:45:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"9618b401-1c4d-4522-bda9-29a10fb61c3c","html_url":"https://github.com/janstuemmel/slim3-doctrine-testing-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/janstuemmel%2Fslim3-doctrine-testing-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janstuemmel%2Fslim3-doctrine-testing-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janstuemmel%2Fslim3-doctrine-testing-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janstuemmel%2Fslim3-doctrine-testing-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janstuemmel","download_url":"https://codeload.github.com/janstuemmel/slim3-doctrine-testing-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254518396,"owners_count":22084375,"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":["doctrine","php","slim3","slim3-doctrine-setup","slim3-doctrine-testing","testing"],"created_at":"2024-11-07T01:13:51.980Z","updated_at":"2026-07-03T00:33:57.947Z","avatar_url":"https://github.com/janstuemmel.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/janstuemmel/slim3-doctrine-testing-example.svg?branch=master)](https://travis-ci.org/janstuemmel/slim3-doctrine-testing-example)\n[![Test Coverage](https://codeclimate.com/github/janstuemmel/slim3-doctrine-testing-example/badges/coverage.svg)](https://codeclimate.com/github/janstuemmel/slim3-doctrine-testing-example/coverage)\n\n# Slim3-Doctrine Testing\n\nTesting example for a slim3-doctrine setup with in-memory sqlite database.\n\n## Requirements\n\n* php \u003e= 5.5\n* sqlite\n\n## Packages\n\n* `phpunit/phpunit`\n* `there4/slim-test-helpers`\n\n## Usage\n\n```sh\n# install deps\ncomposer install\n\n# test\ncomposer test\n\n# serve\ntouch app.db \u0026\u0026 composer db:create\ncomposer serve # starts build-in webserver at localhost:8080\n\n# add some test data\ncurl --data '' localhost:8080/api/posts\ncurl --data 'title=Hello World' localhost:8080/api/posts\n\n# get data\ncurl localhost:8080/api/posts\n```\n\n... you will get:\n\n```json\n[\n  {\n    \"id\": 1,\n    \"title\": \"New post\",\n    \"content\": \"Insert content here...\"\n  },\n  {\n    \"id\": 2,\n    \"title\": \"Hello World\",\n    \"content\": \"Insert content here...\"\n  }\n]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanstuemmel%2Fslim3-doctrine-testing-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanstuemmel%2Fslim3-doctrine-testing-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanstuemmel%2Fslim3-doctrine-testing-example/lists"}