|
3 | 3 | <!-- EN-Revision: 3678a6db126048bf052180c85577daab044759aa Maintainer: takaram Status: ready --> |
4 | 4 |
|
5 | 5 | <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> |
7 | 7 |
|
8 | 8 | <sect1 xml:id="install.composer.intro"> |
9 | | - <title>Introduction to Composer</title> |
| 9 | + <title>Composer 入門</title> |
10 | 10 | <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 | + パッケージのリポジトリ、そして共通のプロジェクト構造とコーディング規約を利用しています。 |
18 | 18 | </simpara> |
19 | 19 | <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> を利用することができます。 |
26 | 25 | </simpara> |
27 | 26 | <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> を参照してください。 |
33 | 32 | </simpara> |
34 | 33 | <example> |
35 | 34 | <title> |
36 | | - <literal>composer.json</literal> that requires a single package |
| 35 | + 一つのパッケージを依存に持つ <literal>composer.json</literal> |
37 | 36 | </title> |
38 | 37 | <programlisting role="javascript"> |
39 | 38 | <![CDATA[ |
|
0 commit comments