{"id":15076625,"url":"https://github.com/themarlboroman/doctrineless-symfony","last_synced_at":"2026-01-04T03:03:10.135Z","repository":{"id":100037243,"uuid":"120819716","full_name":"TheMarlboroMan/doctrineless-symfony","owner":"TheMarlboroMan","description":"A repo-tutorial to see how we can do database work in symfony without doctrine and with PDO.","archived":false,"fork":false,"pushed_at":"2018-02-09T12:44:17.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-16T12:15:28.792Z","etag":null,"topics":["doctrine","pdo","symfony2","tutorial"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheMarlboroMan.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-08T21:23:30.000Z","updated_at":"2022-09-12T12:38:46.000Z","dependencies_parsed_at":"2023-03-18T10:01:11.756Z","dependency_job_id":null,"html_url":"https://github.com/TheMarlboroMan/doctrineless-symfony","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"2652a0e2e3d68220a863b7c935a8a3c1c95f855e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheMarlboroMan%2Fdoctrineless-symfony","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheMarlboroMan%2Fdoctrineless-symfony/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheMarlboroMan%2Fdoctrineless-symfony/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheMarlboroMan%2Fdoctrineless-symfony/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheMarlboroMan","download_url":"https://codeload.github.com/TheMarlboroMan/doctrineless-symfony/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243864824,"owners_count":20360360,"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","pdo","symfony2","tutorial"],"created_at":"2024-09-25T04:00:35.319Z","updated_at":"2026-01-04T03:03:10.087Z","avatar_url":"https://github.com/TheMarlboroMan.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"doctrineless-symfony\n====================\n\nA repo-tutorial to see how we can do database work in symfony without doctrine and with PDO. \n\nTHIS IS STILL A WORK IN PROGRESS, PLEASE, COME BACK LATER.\n\n# My setup.\n\nI am using a Lubuntu 14 machine, with Xampp 1.8.3-2. That's PHP 5.5.6, Mysql 5.6.14 and Apache 2.4.7.\n\n# Creating the project.\n\nPlease, see the instructions in the README.md file of my refresh-symfony repository on github and follow the steps \"Creating the project and setting it up.\" and \"Setting it up on GIT...\". I assume you are familiar with symfony and MySQL stored procedures. If not, refer to the refresh-symfony repository mentioned earlier.\n\n# The general idea.\n\n//TODO.\n\n# Setting up the database tables and procedures.\n\n//TODO.\n//TODO: PROCEDURE SET ERROR MESSAGE... WHAT VERSION OF MYSQL IS THAT?\n\n# Setting up doctrineless symfony.\n\n## Setting up the test controller.\n\n\t- remove unused files (defaultcontroller and view directory).\n\t- routing.\n\t- new controller.\n\n## Removing doctrine and other bundles we are not going to use.\n\n\t- app/AppKernel.php remove from (we removed all but frameworkBundle and AppBundle. We also removed all from dev). \n\t- app/config/config.yml, app/config/config_dev.yml, app/config/security.yml can remove too.\n\t- everything from routing_dev can go to hell too except for the _main entry.\n\t- set templating engines to php in config.yml\n\t- update composer files\n\t- composer update vvv (go have a drink in the meantime).\n\t- check the vendor directory. Still doctrine, but much less... Most of these aren't going anywhere.\n\n## Testing again.\n\n\t- Load the thing again.\n\n# Connecting to the database.\n\n\t- A quick controller test.\n\n# Moving the database connection to a service.\n\n//TODO: To connect to database automatically we could hook to events... http://symfony.com/doc/2.8/reference/events.html\n//But actually... does that really matter?\n\n# Setting up procedure services.\n\n# Setting up all routes and controllers.\n\n# Final words.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemarlboroman%2Fdoctrineless-symfony","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthemarlboroman%2Fdoctrineless-symfony","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemarlboroman%2Fdoctrineless-symfony/lists"}