Bulletphp 설치

Bulletphp 설치

1 사전 작업[ | ]

2 composer로 설치[ | ]

root@zetawiki:~# cd /usr/share/php
root@zetawiki:/usr/share/php# rm -f composer.*
root@zetawiki:/usr/share/php# composer require "vlucas/bulletphp"
Using version ^1.4 for vlucas/bulletphp
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing pimple/pimple (v3.0.2)
    Downloading: 100%         

  - Installing vlucas/bulletphp (v1.4.2)
    Downloading: 100%         

Writing lock file
Generating autoload files
  • 폴더명 변경
root@zetawiki:/usr/share/php# mv vendor/ bulletphp
root@zetawiki:/usr/share/php#

3 인클루드 테스트[ | ]

root@zetawiki:/usr/share/php# cd
root@zetawiki:~# vi bulletphp_test.php
<?php
require 'bulletphp/autoload.php';
$app = new Bullet\App();
root@zetawiki:~# php bulletphp_test.php 
root@zetawiki:~#

4 같이 보기[ | ]

5 주석[ | ]

  1. 없으면 mkdir /usr/share/php로 만들자.
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}