Calendarパッケージのインストール

広告

Calendarを利用するためにまずCalendarパッケージをインストールします。コマンドプロンプトを起動してから次のように入力して下さい。

pear install Calendar-beta

実際に行った結果は次のようになります。

Calendarパッケージのインストール

2007年6月現在の最新バージョンはPager 0.5.3となります。

インストール時に表示されている通りDateパッケージを使用するようなので合わせてインストールしておきます。

pear install Date

実際に行った結果は次のようになります。

Calendarパッケージのインストール

パッケージの情報を確認すると次のように表示されます。

D:¥>pear list Calendar
INSTALLED FILES FOR CALENDAR
============================
TYPE INSTALL PATH
php  D:¥php¥pear¥Calendar¥Calendar.php
php  D:¥php¥pear¥Calendar¥Factory.php
php  D:¥php¥pear¥Calendar¥Year.php
php  D:¥php¥pear¥Calendar¥Month.php
php  D:¥php¥pear¥Calendar¥Month¥Weekdays.php
php  D:¥php¥pear¥Calendar¥Month¥Weeks.php
php  D:¥php¥pear¥Calendar¥Week.php
php  D:¥php¥pear¥Calendar¥Table¥Helper.php
php  D:¥php¥pear¥Calendar¥Day.php
php  D:¥php¥pear¥Calendar¥Hour.php
php  D:¥php¥pear¥Calendar¥Minute.php
php  D:¥php¥pear¥Calendar¥Second.php
php  D:¥php¥pear¥Calendar¥Validator.php
php  D:¥php¥pear¥Calendar¥Decorator.php
php  D:¥php¥pear¥Calendar¥Engine¥Interface.php
php  D:¥php¥pear¥Calendar¥Engine¥UnixTS.php
php  D:¥php¥pear¥Calendar¥Engine¥PearDate.php
php  D:¥php¥pear¥Calendar¥Decorator¥Textual.php
php  D:¥php¥pear¥Calendar¥Decorator¥Uri.php
php  D:¥php¥pear¥Calendar¥Decorator¥Weekday.php
php  D:¥php¥pear¥Calendar¥Decorator¥Wrapper.php
php  D:¥php¥pear¥Calendar¥Util¥Textual.php
php  D:¥php¥pear¥Calendar¥Util¥Uri.php
doc  D:¥php¥pear¥docs¥Calendar¥docs¥Readme
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥index.html
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥1.php
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥2.php
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥3.php
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥4.php
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥5.php
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥6.php
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥7.php
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥8.php
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥9.php
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥10.php
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥11.php
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥12.php
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥13.php
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥14.php
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥15.php
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥16.php
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥17.php
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥18.php
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥19.php
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥20.php
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥21.php
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥22.php
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥23.php
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥1.phps
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥2.phps
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥3.phps
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥4.phps
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥5.phps
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥6.phps
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥7.phps
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥8.phps
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥9.phps
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥10.phps
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥11.phps
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥12.phps
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥13.phps
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥14.phps
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥15.phps
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥16.phps
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥17.phps
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥18.phps
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥19.phps
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥20.phps
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥21.phps
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥22.phps
doc  D:¥php¥pear¥docs¥Calendar¥docs¥examples¥23.phps
test D:¥php¥pear¥tests¥Calendar¥tests¥README
test D:¥php¥pear¥tests¥Calendar¥tests¥all_tests.php
test D:¥php¥pear¥tests¥Calendar¥tests¥calendar_engine_tests.php
test D:¥php¥pear¥tests¥Calendar¥tests¥calendar_include.php
test D:¥php¥pear¥tests¥Calendar¥tests¥calendar_tabular_tests.php
test D:¥php¥pear¥tests¥Calendar¥tests¥calendar_test.php
test D:¥php¥pear¥tests¥Calendar¥tests¥calendar_tests.php
test D:¥php¥pear¥tests¥Calendar¥tests¥day_test.php
test D:¥php¥pear¥tests¥Calendar¥tests¥decorator_test.php
test D:¥php¥pear¥tests¥Calendar¥tests¥decorator_tests.php
test D:¥php¥pear¥tests¥Calendar¥tests¥decorator_textual_test.php
test D:¥php¥pear¥tests¥Calendar¥tests¥decorator_uri_test.php
test D:¥php¥pear¥tests¥Calendar¥tests¥helper_test.php
test D:¥php¥pear¥tests¥Calendar¥tests¥hour_test.php
test D:¥php¥pear¥tests¥Calendar¥tests¥minute_test.php
test D:¥php¥pear¥tests¥Calendar¥tests¥month_test.php
test D:¥php¥pear¥tests¥Calendar¥tests¥month_weekdays_test.php
test D:¥php¥pear¥tests¥Calendar¥tests¥month_weeks_test.php
test D:¥php¥pear¥tests¥Calendar¥tests¥peardate_engine_test.php
test D:¥php¥pear¥tests¥Calendar¥tests¥second_test.php
test D:¥php¥pear¥tests¥Calendar¥tests¥simple_include.php
test D:¥php¥pear¥tests¥Calendar¥tests¥table_helper_tests.php
test D:¥php¥pear¥tests¥Calendar¥tests¥util_tests.php
test D:¥php¥pear¥tests¥Calendar¥tests¥util_textual_test.php
test D:¥php¥pear¥tests¥Calendar¥tests¥util_uri_test.php
test D:¥php¥pear¥tests¥Calendar¥tests¥unixts_engine_test.php
test D:¥php¥pear¥tests¥Calendar¥tests¥validator_error_test.php
test D:¥php¥pear¥tests¥Calendar¥tests¥validator_tests.php
test D:¥php¥pear¥tests¥Calendar¥tests¥validator_unit_test.php
test D:¥php¥pear¥tests¥Calendar¥tests¥week_firstday_0_test.php
test D:¥php¥pear¥tests¥Calendar¥tests¥week_test.php
test D:¥php¥pear¥tests¥Calendar¥tests¥year_test.php

D:¥>

D:¥>pear list Date
INSTALLED FILES FOR DATE
========================
TYPE INSTALL PATH
php  D:¥php¥pear¥Date¥Calc.php
php  D:¥php¥pear¥Date¥Human.php
php  D:¥php¥pear¥Date¥Span.php
php  D:¥php¥pear¥Date¥TimeZone.php
doc  D:¥php¥pear¥docs¥Date¥docs¥LICENSE
doc  D:¥php¥pear¥docs¥Date¥docs¥TODO
test D:¥php¥pear¥tests¥Date¥tests¥bugs¥bug-674.phpt
test D:¥php¥pear¥tests¥Date¥tests¥bugs¥bug-727-1.phpt
test D:¥php¥pear¥tests¥Date¥tests¥bugs¥bug-727-2.phpt
test D:¥php¥pear¥tests¥Date¥tests¥bugs¥bug-727-3.phpt
test D:¥php¥pear¥tests¥Date¥tests¥bugs¥bug-727-4.phpt
test D:¥php¥pear¥tests¥Date¥tests¥bugs¥bug-967.phpt
test D:¥php¥pear¥tests¥Date¥tests¥bugs¥bug-8912.phpt
test D:¥php¥pear¥tests¥Date¥tests¥bugs¥bug-9213.phpt
test D:¥php¥pear¥tests¥Date¥tests¥bugs¥bug-9414.phpt
test D:¥php¥pear¥tests¥Date¥tests¥calc.php
test D:¥php¥pear¥tests¥Date¥tests¥testunit.php
test D:¥php¥pear¥tests¥Date¥tests¥testunit_date.php
test D:¥php¥pear¥tests¥Date¥tests¥testunit_date_span.php
test D:¥php¥pear¥tests¥Date¥tests¥test_calc.php
test D:¥php¥pear¥tests¥Date¥tests¥test_date_methods_span.php
php  D:¥php¥pear¥Date.php

D:¥>

( Written by Tatsuo Ikura )

関連記事 (一部広告含む)