일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
- 자바
- php
- JavaScript
- 주식 청약
- MYSQL
- Oracle
- Stock ipo
- 자바스크립트
- 6월 공모주 청약 일정
- Stock
- jquery
- SQL
- 제이쿼리
- IPO
- 오라클
- 리눅스
- 공모주
- 맥
- java
- css
- codeigniter
- 코드이그나이터
- Eclipse
- 주식
- 공모주 청약 일정
- 주식 청약 일정
- 공모주 청약
- linux
- html
- 7월 공모주 청약 일정
- Today
- Total
개발자의 끄적끄적
[php] 10 differences between CodeIgniter 3 and 4 본문
[php] 10 differences between CodeIgniter 3 and 4
Differences between versions
CodeIgniter 4 is very different from 3 and below you will see a little about the main differences between them.
#1 - Support for PHP versions
To use CodeIgniter 4 the minimum PHP version required is 7.2, while with CodeIgniter 3 it is possible to use from version 5.6 (which has already been completely discontinued).
#2 - Directory organization
The file structure is completely different. CodeIgniter 4 has its structure organized in 5 directories: /app,/system,/public,/writable,/tests. While CodeIgniter 3 is organized in 2 directories:/applicationand/system`.
#3 - Use of namespaces
CodeIgniter 4 is written entirely in PHP 7 and makes use of namespaces, while CodeIgniter 3 does not use namespaces.
#4 - Autoloading
CodeIgniter 4 has a much more efficient autoload process, and one of the factors that help is the use of namespaces. While in CodeIgniter 3 it is necessary to manually configure most of the files to be loaded.
#5 - Use of entities
CodeIgniter 4 has native support for the use of Entities (entities) that help in structuring the database part of an application, representing the existing columns in the tables. CodeIgniter 3 did not have this feature and anyone who needed to use it needed to use third-party libraries and make adjustments to the file upload to support it.
#6 - Performance
CodeIgniter 4, for using PHP 7 in writing and as a minimum configuration on the server, and other aspects, has a better performance than CodeIgniter 3.
#7 - Monolithic Libraries
Unlike CodeIgniter 3, in this new version the use of monolithic libraries in the PEAR style is almost zero.
#8 - Settings
With CodeIgniter 4, the initial settings for your application to start running are minimal, while in CodeIgniter 3 it was necessary to perform a good number of configurations.
#9 - Native support for .env files
CodeIgniter 4 has native support for .env files, allowing an optimization of the settings of the different environments where it may be running (production, tests, development). This feature did not exist natively in CodeIgniter 3.
#10 - Migration between versions
CodeIgniter 4 is not backward compatible, so the process of updating applications from version 3 to version 4 will require a little more work, but it is not at all complicated.
While the migration from version 2.x to 3.x, and between the different versions 3.x was just overwriting the files in the /system directory and updating the name of some files, from version 3 to four a new structure is needed for the application and a rewrite of all the classes used in it to adapt to the new standard.
These are some of the main differences between versions 3 and 4 of CodeIgniter. Stay tuned here that has a lot of content about CodeIgniter 4 being produced.
영문이지만 대충 이해되실껍니다!
참고들하세요!!
출처 : https://dev.to/jonathanlamim/10-differences-between-codeigniter-3-and-4-5526
'개발 > php' 카테고리의 다른 글
[ PHP ] Modern PHP 란? [펌] (0) | 2020.04.14 |
---|---|
[php] codeigniter cms 오픈소스 (0) | 2020.04.14 |
[php] 파일 및 디렉토리 상수 [펌] (0) | 2020.04.06 |
[PHP] dirname(__FILE__) (0) | 2020.04.06 |
[php] aws s3 사용법 [펌] (0) | 2020.04.03 |