자료구조 설치

확장 프로그램을 설치하는 가장 쉬운 방법은 » PECL을 사용하는 것입니다.

pecl install ds

소스에서 직접 빌드할 수도 있습니다.

# Dependencies you might need to install
# sudo apt-get install git build-essential php7.0-dev

git clone https://github.com/php-ds/extension "php-ds"
cd php-ds

# Build and install the extension
phpize
./configure
make
make install

# Clean up the build files
make clean
phpize --clean
                

Windows를 사용하는 경우 » PECL에서 컴파일된 .dll을 다운로드할 수 있습니다.

메모: Composer를 사용하는 경우 확장 프로그램이 설치되지 않은 환경에서도 코드가 계속 작동하도록 » php-ds/php-ds를 프로젝트에 포함하는 것이 좋습니다. 확장 프로그램이 설치된 경우 우선 순위가 지정됩니다.