use App\ThirdParty\PHPExcel;
$objPHPExcel = new PHPExcel();
PHPExcel class 를 호출하려고 하는데
Class "App\ThirdParty\PHPExcel" not found
에러가 뜹니다
문제가 무엇인지 모르겠습니다
PHPExcel가 php7 버전을 지원 안한다는 말도 들은거 같은데
phpspreadsheet을 사용해야 할까요?
Class "App\ThirdParty\PHPExcel" not found
말 그대로 클래스를 찾을 수 없는 현상 입니다.
네임스페이스 경로, 파일명등을 확인 하세요
phpExcel은 더이상 업데이트가 안되는 프로젝트 입니다.
https://github.com/PHPOffice/PhpSpreadsheet
https://github.com/box/spout
등을 이용바랍니다.
추가로 그런 패키지들은 composer로 설치 하고 사용하세요
https://psr.kkame.net/accepted/psr-4-autoloader
을 확인 하시어 오토로드 시스템에 대해 먼저 숙지하시면 도움이 됩니다.
phpspreadsheet 로 변경해도 class not found 라 뜹니다
ci4 설정을 추가해야 하는 부분이 있는지 모르겠습니다 ㅠ