CodeIgniter Forums
clean arsitektur - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: clean arsitektur (/showthread.php?tid=87092)



clean arsitektur - devo - 03-13-2023

hii, how to implement clean arsitektur with codeigniter 4??
can someone give me example?


RE: clean arsitektur - devo - 04-15-2023

hii all can please help to suggest to how implement Clean Architecture


RE: clean arsitektur - JustJohnQ - 04-15-2023

What do you mean with clean architecture?
If you want to install Codeigniter without any extras, I suggest you download the ZIP files instead of installing it using Composer.
https://codeigniter.com/user_guide/installation/installing_manual.html


RE: clean arsitektur - MahishTanzon - 04-18-2023

Implementing clean architecture with CodeIgniter 4 involves breaking down your application into smaller, independent modules with well-defined responsibilities. These modules are usually comprised of an application core, an interface adapter layer, and an external systems layer.

To give you an example, you could create a "Domain" directory where you place all of your business logic, which includes the models, rules, and services. In the "Infrastructure" directory, you would have your implementation of repositories and database access. Finally, in the "Presentation" directory, you would have your controllers, views, and templates.

It's important to note that there are different interpretations of clean architecture, and the approach you take will depend on your specific use case. I suggest you read up on the principles of clean architecture and try to apply them to your CodeIgniter 4 project. You could also take a look at open-source projects that implement clean architecture, such as CleanPhp or Symfony.