포시코딩

[PHP] codeigniter4 (windows, mac) 본문

카테고리 없음

[PHP] codeigniter4 (windows, mac)

포시 2023. 8. 3. 23:28
728x90

PHP 설치

https://windows.php.net/download

 

PHP For Windows: Binaries and sources Releases

PHP 8.0 (8.0.29) Download source code [23.47MB] Download tests package (phpt) [13.56MB] VS16 x64 Non Thread Safe (2023-Jun-07 21:47:34) Zip [25.53MB] sha256: 0e85a7b30306581625e9fcf72561c508b4cc467aa9ee5eeb49a84770cfa85223 Debug Pack [23.21MB] sha256: a47a

windows.php.net

or

brew install php

(mac)

 

composer 설치

https://happygold.tistory.com/entry/composer-%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-%EB%B0%8F-%EC%84%A4%EC%B9%98%ED%95%98%EB%8A%94-%EB%B0%A9%EB%B2%95

 

composer 다운로드 및 설치하는 방법

composer 다운로드 및 설치하는 방법 php 의존성관리 및 각종 프레임워크를 설치할 수 있는 툴이 있습니다. 해외에서도 유명한 composer입니다. 한국어로 컴포저입니다. 라라벨 프레임워크가 인기가

happygold.tistory.com

or

https://getcomposer.org/download/

 

Composer

Download Composer Latest: v2.5.8 To quickly install Composer in the current directory, run the following script in your terminal. To automate the installation, use the guide on installing Composer programmatically. php -r "copy('https://getcomposer.org/ins

getcomposer.org

공식 사이트에 나온대로

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === 'e21205b207c3ff031906575712edab6f13eb0b361f2085f1f1237b7126d785e826a450292b6cfd1d64d92e6563bbde02') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
sudo mv composer.phar /usr/local/bin/composer

 

CodeIgniter4 프로젝트 생성

composer create-project codeigniter4/appstarter test_project

 

728x90