{"id":19632913,"url":"https://github.com/ampmonteiro/ci4-with-smarty4-template-engine","last_synced_at":"2026-04-18T07:32:13.387Z","repository":{"id":179684998,"uuid":"663972927","full_name":"ampmonteiro/ci4-with-smarty4-template-engine","owner":"ampmonteiro","description":"CodeIgniter 4 with smarty 4 template engine","archived":false,"fork":false,"pushed_at":"2023-07-08T23:02:41.000Z","size":342,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-19T04:32:57.819Z","etag":null,"topics":["codeigniter4","docker","mysql8","php8","smarty-template-engine","smarty4"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"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/ampmonteiro.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,"zenodo":null}},"created_at":"2023-07-08T15:19:52.000Z","updated_at":"2023-08-21T14:45:36.000Z","dependencies_parsed_at":"2026-04-05T09:00:09.620Z","dependency_job_id":null,"html_url":"https://github.com/ampmonteiro/ci4-with-smarty4-template-engine","commit_stats":null,"previous_names":["ampmonteiro/ci4-with-smarty4-template-engine"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ampmonteiro/ci4-with-smarty4-template-engine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ampmonteiro%2Fci4-with-smarty4-template-engine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ampmonteiro%2Fci4-with-smarty4-template-engine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ampmonteiro%2Fci4-with-smarty4-template-engine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ampmonteiro%2Fci4-with-smarty4-template-engine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ampmonteiro","download_url":"https://codeload.github.com/ampmonteiro/ci4-with-smarty4-template-engine/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ampmonteiro%2Fci4-with-smarty4-template-engine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31961147,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["codeigniter4","docker","mysql8","php8","smarty-template-engine","smarty4"],"created_at":"2024-11-11T12:15:44.582Z","updated_at":"2026-04-18T07:32:13.381Z","avatar_url":"https://github.com/ampmonteiro.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodeIgniter 4 with Smarty 4 template engine\n\n## About the project?\n\nBase on my improved version of `ci4 - Build Your First Application`:\n\n[Original improved](https://github.com/ampmonteiro/ci4-build-your-first-App).\n\nWhat was added:\n\n- take advantage of template engine like **Smarty php**\n\n## What was used\n\n- php: 8.1\n- mysql: 8\n- Docker\n- CodeIgniter: 4.3.6\n- Smarty php: 4.3 -\u003e [more about it](https://www.smarty.net/documentation)\n\n## side by side template code (Smarty vs Vanilla Ci4 template engine)\n\n![Ci4 Template engine vs Latte template engine](smarty_vs_ci4_template.png 'Ci4 Template engine vs Latte template engine')\n\n## image of the App\n\n![CI4 News-Improved](app_screen.png 'News APp')\n\n## Editor and Recommend extensions\n\n- Editor: [VS Code](https://code.visualstudio.com) (By Microsoft)\n\n- [PHP Intelephense](https://marketplace.visualstudio.com/items?itemName=bmewburn.vscode-intelephense-client) (By Ben Mewburn)\n\n- [PHP Namespace Resolver](https://marketplace.visualstudio.com/items?itemName=MehediDracula.php-namespace-resolver) (By Mehedi Hassan)\n\n- [PHP Awesome Snippets](https://marketplace.visualstudio.com/items?itemName=hakcorp.php-awesome-snippets) (By HakCorp)\n\n- [Smarty Template Support](https://marketplace.visualstudio.com/items?itemName=aswinkumar863.smarty-template-support)(Aswin Kumar)\n\n- To better developement it is taked advantages of this two wonderfull vscode extensions:\n  - [Docker](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker) (By Microsoft): to manage docker containers in vs code\n  - [Dev Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) (By Microsoft): to use vscode inside of the container.\n\n## Setup (using docker without compose)\n\nphp image: read the Dockerfile\n\nmysql image in terminal:\n\n```bash\n\ndocker run --name db_ci \\\n     -e MYSQL_ROOT_PASSWORD=secret \\\n     -e MYSQL_DATABASE=ci4 \\\n     -e MYSQL_USER=dev \\\n     -e MYSQL_PASSWORD=secret \\\n     -dp 3307:3306 mysql;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fampmonteiro%2Fci4-with-smarty4-template-engine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fampmonteiro%2Fci4-with-smarty4-template-engine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fampmonteiro%2Fci4-with-smarty4-template-engine/lists"}