EZFUNLAB 번역버튼
🌐

WIN11 PHP codeigniter4간단 세팅

윈도우 pc 에 php 설치
https://www.php.net/downloads.php

windows downloads 를 클릭하여 윈도우용 설치 파일을 다운로드

zip 파일 을 맏아서 원하는 위치에 압추 해지

종속 관련 프로그램 설치
https://getcomposer.org

Downlosd -> windows installer -> composer-Setup.exe 다운로드

설치 방법
composer-setup.exe 실행
install for all users 실행

Developse mode 경로 지정 유무

Choose the command-line PHP you want to use : 다운로드 받은 php 파일경로

cmd 창
작업할 경로 이동

composer create-project codeigniter4/appstarter 프로젝트명


php.ini 는 PHP 경로 안에 있음


대략적으로
20 package suggestions were added by new dependencies, use `composer suggest` to see details.

Generating optimized autoload files

26 packages you are using are looking for funding.

Use the `composer fund` command to find out more!

No security vulnerability advisories found
완료




프로 젝트 폴더이동

실행 : php spark serve

CodeIgniter4 기본페이지 확인 가능
http://localhost:8080



localhost 가 아닌 ip로 접속가능테스트

실행 : php spark serve –host=0.0.0.0 –port=8080
ip접속 안될시

실행: php -S 0.0.0.0:8080 -t public