{"id":408456,"date":"2024-06-29T20:10:55","date_gmt":"2024-06-29T20:10:55","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=408456"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=408456","title":{"rendered":"<span>Speed Dating with the CodeIgniter 4 on GitHub<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/840\/760\/cef\/840760cefffde1a4508705ff6cc4bd64.png\" alt=\"Copyright Github Logo (github.com), Copyright CodeIgniter Logo (codeigniter.com)\" title=\"Copyright Github Logo (github.com), Copyright CodeIgniter Logo (codeigniter.com)\" width=\"222\" height=\"200\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/840\/760\/cef\/840760cefffde1a4508705ff6cc4bd64.png\"\/><figcaption>Copyright Github Logo (github.com), Copyright CodeIgniter Logo (codeigniter.com)<\/figcaption><\/figure>\n<p>Getting acquainted with the <a href=\"https:\/\/codeigniter.com\/\" rel=\"noopener noreferrer nofollow\">CodeIgniter<\/a> 4 PHP framework is quite simple.<\/p>\n<p>Spend the evening following the instructions in the <a href=\"https:\/\/codeigniter.com\/user_guide\/tutorial\/index.html#build-your-first-application\" rel=\"noopener noreferrer nofollow\">\u00abBuild Your First Application\u00bb<\/a>\u00a0section. Since the documentation is written in a good, technically understandable language, it is even possible to get some aesthetic pleasure in the process of familiarizing yourself with this and other sections.<\/p>\n<p>The feeling of airiness and consistency of the CodeIgniter 4 project will be present with you everywhere now.<\/p>\n<p>What is so attractive about <a href=\"https:\/\/codeigniter.com\/download\" rel=\"noopener noreferrer nofollow\">CodeIgniter<\/a> 4?<\/p>\n<p>CodeIgniter 4 has almost everything you need to develop a modern web project of almost any complexity. All areas of modern web development are covered in a fairly compact \u00a0<a href=\"https:\/\/codeigniter.com\/user_guide\/index.html\" rel=\"noopener noreferrer nofollow\">documentation<\/a>. The sections where this is required are filled with clear examples, and explanations of how to use the &#171;flexibility&#187; built into the framework are given.<\/p>\n<p>Perhaps based on the care for programmers that CodeIgniter 4 developers have shown for specialists who are starting to get acquainted with their project, everything is presented very consistently, logical and easy to understand.<\/p>\n<p>But there is one point that will probably be solved in CodeIgniter 5, there is no way to immediately get the entire \u00abworking example\u00bb from <a href=\"https:\/\/codeigniter.com\/user_guide\/installation\/index.html#installation\" rel=\"noopener noreferrer nofollow\">\u00abInstallation\u00bb<\/a> or <a href=\"https:\/\/codeigniter.com\/user_guide\/cli\/index.html#command-line-usage\" rel=\"noopener noreferrer nofollow\">\u00abCommand Line\u00bb<\/a>\u00a0(via <code>php spark<\/code>).<\/p>\n<p>The inconvenience of the absence of a \u00abworking example\u00bb is especially evident when it becomes necessary to \u00abrefresh in memory\u00bb the specifics of the CodeIgniter 4 framework.<\/p>\n<p>Having faced \u00abthis moment\u00bb several times, I thought it would be useful to have a \u00abworking example\u00bb\u00a0<a href=\"https:\/\/codeigniter.com\/user_guide\/tutorial\/index.html#build-your-first-application\" rel=\"noopener noreferrer nofollow\">\u00abBuild Your First Application\u00bb<\/a> on hand by posting it<\/p>\n<p><a href=\"https:\/\/github.com\/numbrCode\/codeigniter4-build-your-first-application\" rel=\"noopener noreferrer nofollow\">to the repository on GitHub<\/a>.<\/p>\n<p>Perhaps the repository is too detailed, but this is only to minimize the deployment time of the  \u00abworking example\u00bb on the local computer. The repository presented on GitHub is based on XAMPP (windows), git bash. In any case, everything was developed and functioned for the author of this modest post.<\/p>\n<p>There is one more useful point.<\/p>\n<p>\u00abDeploying\u00bb the database from the \u00abworking example\u00bb repository is not implemented through SQL, as in the <a href=\"https:\/\/codeigniter.com\/user_guide\/tutorial\/news_section.html#create-a-database-to-work-with\" rel=\"noopener noreferrer nofollow\">documentation<\/a>, although a <a href=\"https:\/\/github.com\/numbrCode\/codeigniter4-build-your-first-application\/blob\/main\/_ci4tutorial_.sql\" rel=\"noopener noreferrer nofollow\">database dump<\/a> is present, but using <a href=\"https:\/\/codeigniter.com\/user_guide\/dbmgmt\/migration.html#database-migrations\" rel=\"noopener noreferrer nofollow\">Database Migrations<\/a> and <a href=\"https:\/\/codeigniter.com\/user_guide\/dbmgmt\/seeds.html#database-seeding\" rel=\"noopener noreferrer nofollow\">Database Seeding<\/a>. Exactly what, among other things, makes production reliable: maintenance, scaling, etc. any modern web-project by a team of any number of specialists and different levels of training and experience.<\/p>\n<p>Implementation of testing on <a href=\"https:\/\/codeigniter.com\/user_guide\/testing\/overview.html#installing-phpunit\" rel=\"noopener noreferrer nofollow\">PHPUnit<\/a> for a web project of any complexity also seems convenient and logical, but this apparently requires a separate \u00ablight repository\u00bb on GitHub and a separate article on <a href=\"https:\/\/habr.com\/\" rel=\"noopener noreferrer nofollow\">Habr<\/a>. Of course, provided that these questions are of interest to the engineering community, and not just to the author.<\/p>\n<p>I would be glad if this post turns out to be useful to someone and sorry for my English.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/568252\/\"> https:\/\/habr.com\/ru\/articles\/568252\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"\"><figcaption>Copyright Github Logo (github.com), Copyright CodeIgniter Logo (codeigniter.com)<\/figcaption><\/figure>\n<p>Getting acquainted with the <a href=\"https:\/\/codeigniter.com\/\" rel=\"noopener noreferrer nofollow\">CodeIgniter<\/a> 4 PHP framework is quite simple.<\/p>\n<p>Spend the evening following the instructions in the <a href=\"https:\/\/codeigniter.com\/user_guide\/tutorial\/index.html#build-your-first-application\" rel=\"noopener noreferrer nofollow\">\u00abBuild Your First Application\u00bb<\/a>\u00a0section. Since the documentation is written in a good, technically understandable language, it is even possible to get some aesthetic pleasure in the process of familiarizing yourself with this and other sections.<\/p>\n<p>The feeling of airiness and consistency of the CodeIgniter 4 project will be present with you everywhere now.<\/p>\n<p>What is so attractive about <a href=\"https:\/\/codeigniter.com\/download\" rel=\"noopener noreferrer nofollow\">CodeIgniter<\/a> 4?<\/p>\n<p>CodeIgniter 4 has almost everything you need to develop a modern web project of almost any complexity. All areas of modern web development are covered in a fairly compact \u00a0<a href=\"https:\/\/codeigniter.com\/user_guide\/index.html\" rel=\"noopener noreferrer nofollow\">documentation<\/a>. The sections where this is required are filled with clear examples, and explanations of how to use the &#171;flexibility&#187; built into the framework are given.<\/p>\n<p>Perhaps based on the care for programmers that CodeIgniter 4 developers have shown for specialists who are starting to get acquainted with their project, everything is presented very consistently, logical and easy to understand.<\/p>\n<p>But there is one point that will probably be solved in CodeIgniter 5, there is no way to immediately get the entire \u00abworking example\u00bb from <a href=\"https:\/\/codeigniter.com\/user_guide\/installation\/index.html#installation\" rel=\"noopener noreferrer nofollow\">\u00abInstallation\u00bb<\/a> or <a href=\"https:\/\/codeigniter.com\/user_guide\/cli\/index.html#command-line-usage\" rel=\"noopener noreferrer nofollow\">\u00abCommand Line\u00bb<\/a>\u00a0(via <code>php spark<\/code>).<\/p>\n<p>The inconvenience of the absence of a \u00abworking example\u00bb is especially evident when it becomes necessary to \u00abrefresh in memory\u00bb the specifics of the CodeIgniter 4 framework.<\/p>\n<p>Having faced \u00abthis moment\u00bb several times, I thought it would be useful to have a \u00abworking example\u00bb\u00a0<a href=\"https:\/\/codeigniter.com\/user_guide\/tutorial\/index.html#build-your-first-application\" rel=\"noopener noreferrer nofollow\">\u00abBuild Your First Application\u00bb<\/a> on hand by posting it<\/p>\n<p><a href=\"https:\/\/github.com\/numbrCode\/codeigniter4-build-your-first-application\" rel=\"noopener noreferrer nofollow\">to the repository on GitHub<\/a>.<\/p>\n<p>Perhaps the repository is too detailed, but this is only to minimize the deployment time of the  \u00abworking example\u00bb on the local computer. The repository presented on GitHub is based on XAMPP (windows), git bash. In any case, everything was developed and functioned for the author of this modest post.<\/p>\n<p>There is one more useful point.<\/p>\n<p>\u00abDeploying\u00bb the database from the \u00abworking example\u00bb repository is not implemented through SQL, as in the <a href=\"https:\/\/codeigniter.com\/user_guide\/tutorial\/news_section.html#create-a-database-to-work-with\" rel=\"noopener noreferrer nofollow\">documentation<\/a>, although a <a href=\"https:\/\/github.com\/numbrCode\/codeigniter4-build-your-first-application\/blob\/main\/_ci4tutorial_.sql\" rel=\"noopener noreferrer nofollow\">database dump<\/a> is present, but using <a href=\"https:\/\/codeigniter.com\/user_guide\/dbmgmt\/migration.html#database-migrations\" rel=\"noopener noreferrer nofollow\">Database Migrations<\/a> and <a href=\"https:\/\/codeigniter.com\/user_guide\/dbmgmt\/seeds.html#database-seeding\" rel=\"noopener noreferrer nofollow\">Database Seeding<\/a>. Exactly what, among other things, makes production reliable: maintenance, scaling, etc. any modern web-project by a team of any number of specialists and different levels of training and experience.<\/p>\n<p>Implementation of testing on <a href=\"https:\/\/codeigniter.com\/user_guide\/testing\/overview.html#installing-phpunit\" rel=\"noopener noreferrer nofollow\">PHPUnit<\/a> for a web project of any complexity also seems convenient and logical, but this apparently requires a separate \u00ablight repository\u00bb on GitHub and a separate article on <a href=\"https:\/\/habr.com\/\" rel=\"noopener noreferrer nofollow\">Habr<\/a>. Of course, provided that these questions are of interest to the engineering community, and not just to the author.<\/p>\n<p>I would be glad if this post turns out to be useful to someone and sorry for my English.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/568252\/\"> https:\/\/habr.com\/ru\/articles\/568252\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-408456","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/408456","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=408456"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/408456\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=408456"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=408456"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=408456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}