Skip to content

Commit 6fa8293

Browse files
committed
Composer 関連ドキュメントの日本語訳
1 parent c65f6f3 commit 6fa8293

File tree

2 files changed

+24
-26
lines changed

2 files changed

+24
-26
lines changed

install/composer.xml

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,36 @@
33
<!-- EN-Revision: 3678a6db126048bf052180c85577daab044759aa Maintainer: takaram Status: ready -->
44

55
<chapter xml:id="install.composer" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" annotations="chunk:false">
6-
<title>Installation of Composer and third-party packages</title>
6+
<title>Composer とサードパーティパッケージのインストール</title>
77

88
<sect1 xml:id="install.composer.intro">
9-
<title>Introduction to Composer</title>
9+
<title>Composer 入門</title>
1010
<simpara>
11-
&link.composer; is a dependency manager for PHP that makes it possible
12-
to define third-party code packages used by a project that can
13-
then be easily installed and updated. It leverages the built-in
14-
<link linkend="language.oop5.autoload">class autoloading features</link>
15-
of PHP, repositories of PHP packages such as
16-
<link xlink:href="&url.packagist;">Packagist</link>, and common project
17-
layout and coding conventions.
11+
&link.composer; PHP
12+
用の依存管理ツールで、プロジェクトで利用するサードパーティのパッケージを定義し、
13+
そのインストールと更新が簡単に行えるようになります。
14+
Composer は PHP 組み込みの
15+
<link linkend="language.oop5.autoload">クラスのオートロード機能</link>
16+
と、 <link xlink:href="&url.packagist;">Packagist</link> のような PHP
17+
パッケージのリポジトリ、そして共通のプロジェクト構造とコーディング規約を利用しています。
1818
</simpara>
1919
<simpara>
20-
For example, if a PHP application or website needs
21-
to work with <abbrev>UUID</abbrev> values,
22-
<link xlink:href="&url.packagist.package;ramsey/uuid">Ben Ramsey's
23-
<literal>ramsey/uuid</literal> package</link> that implements the
24-
widely known and used types of UUIDs that are defined by
25-
<link xlink:href="&url.rfc;4122">RFC 4122</link> could be used.
20+
例えば、PHP アプリケーションやウェブサイトで <abbrev>UUID</abbrev>
21+
を利用する必要がある場合、<link xlink:href="&url.rfc;4122">RFC 4122</link>
22+
で定義された、広く知られていて使われている UUID の形式を実装した
23+
<link xlink:href="&url.packagist.package;ramsey/uuid">Ben Ramsey の
24+
<literal>ramsey/uuid</literal> パッケージ</link> を利用することができます。
2625
</simpara>
2726
<simpara>
28-
Briefly, this is done by creating a <literal>composer.json</literal>
29-
in the project, using Composer to install the latest version of the
30-
package, and including Composer's autoload script to make it available
31-
to the code. The <link xlink:href="&url.composer;doc/01-basic-usage.md">Composer
32-
"Basic Usage" documentation</link> goes into this in more depth.
27+
簡単に言うと、<literal>composer.json</literal>
28+
をプロジェクトに作成し、Composer を使って最新バージョンのパッケージをインストールし、
29+
Composer のオートロードスクリプトを読み込むことでパッケージがコード内で利用可能となります。
30+
詳細は <link xlink:href="&url.composer;doc/01-basic-usage.md">Composer
31+
"Basic Usage" ドキュメント</link> を参照してください。
3332
</simpara>
3433
<example>
3534
<title>
36-
<literal>composer.json</literal> that requires a single package
35+
一つのパッケージを依存に持つ <literal>composer.json</literal>
3736
</title>
3837
<programlisting role="javascript">
3938
<![CDATA[

language/oop5/autoload.xml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,11 @@ Fatal error: Interface 'ITest' not found in ...
9393
</programlisting>
9494
</example>
9595
<example>
96-
<title>Using Composer's autoloader</title>
96+
<title>Composerのオートローダーの利用</title>
9797
<simpara>
98-
&link.composer; generates a <literal>vendor/autoload.php</literal>
99-
which is set up to automatically load packages that are being managed
100-
by Composer. By including this file, those packages can be used without
101-
any additional work.
98+
&link.composer; は <literal>vendor/autoload.php</literal> ファイルを生成します。
99+
これは Composer によって管理されているパッケージを自動的に読み込むよう設定されています。
100+
このファイルを読み込むことで、これらのパッケージを追加の作業なしで利用できるようになります。
102101
</simpara>
103102
<programlisting role="php">
104103
<![CDATA[

0 commit comments

Comments
 (0)