<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4534132751277745913</id><updated>2024-08-29T14:49:38.437+09:00</updated><category term="symfony"/><category term="PHP"/><category term="propel"/><category term="MySQL"/><category term="SQLite"/><category term="Windows"/><category term="インストール"/><title type='text'>symfonyの奏でかた</title><subtitle type='html'>タイトルは少しパクリ。symfonyをさわってみたくなった人のブログ</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://symfony-jp.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4534132751277745913/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://symfony-jp.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>TK</name><uri>http://www.blogger.com/profile/12498260623824514942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4534132751277745913.post-1646827918079720834</id><published>2008-05-18T10:27:00.001+09:00</published><updated>2008-05-18T10:29:34.092+09:00</updated><title type='text'>symfony日本語ドキュメントのリンク先を変更</title><content type='html'>Ｇｏｏｇｌｅ　Ｃｏｄｅの中にあるsymfonyドキュメントの日本語翻訳のほうが&lt;br /&gt;内容が良かったのでsymfony日本語ドキュメントのリンク先を変更しました。</content><link rel='replies' type='application/atom+xml' href='http://symfony-jp.blogspot.com/feeds/1646827918079720834/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4534132751277745913/1646827918079720834' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4534132751277745913/posts/default/1646827918079720834'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4534132751277745913/posts/default/1646827918079720834'/><link rel='alternate' type='text/html' href='http://symfony-jp.blogspot.com/2008/05/symfony.html' title='symfony日本語ドキュメントのリンク先を変更'/><author><name>TK</name><uri>http://www.blogger.com/profile/12498260623824514942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4534132751277745913.post-5222295996925511726</id><published>2008-04-13T12:44:00.002+09:00</published><updated>2008-04-13T12:51:31.883+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="symfony"/><title type='text'>Symfonyコマンドの一覧</title><content type='html'>&lt;table summary=&quot;Symfony コマンド一覧表示&quot;&gt;&lt;caption&gt;Symfonyコマンド一覧&lt;/caption&gt;&lt;thead&gt;     &lt;tr class=&quot;odd&quot;&gt;       &lt;th scope=&quot;col&quot; abbr=&quot;Home&quot;&gt;分類&lt;/th&gt;        &lt;th scope=&quot;col&quot; abbr=&quot;Home&quot;&gt;コマンド&lt;/th&gt;        &lt;th scope=&quot;col&quot; abbr=&quot;Home&quot;&gt;説明&lt;/th&gt;     &lt;/tr&gt;   &lt;/thead&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;th class=&quot;column1&quot; scope=&quot;row&quot;&gt;基本&lt;/th&gt;        &lt;td&gt;symfony -V&lt;/td&gt;        &lt;td&gt;バージョン表示&lt;/td&gt;     &lt;/tr&gt;      &lt;tr class=&quot;odd&quot;&gt;       &lt;th class=&quot;column1&quot; scope=&quot;row&quot;&gt;基本&lt;/th&gt;        &lt;td&gt;symfony -T&lt;/td&gt;        &lt;td&gt;コマンド一覧表示&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;th class=&quot;column1&quot; scope=&quot;row&quot;&gt;開発環境作成&lt;/th&gt;        &lt;td&gt;symfony clear-chache&lt;/td&gt;        &lt;td&gt;キャッシュのクリア（省略形cc）&lt;/td&gt;     &lt;/tr&gt;      &lt;tr class=&quot;odd&quot;&gt;       &lt;th class=&quot;column1&quot; scope=&quot;row&quot;&gt;開発環境作成&lt;/th&gt;        &lt;td&gt;symfony init-project [プロジェクト名]&lt;/td&gt;        &lt;td&gt;プロジェクト作成（省略形new）&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;th class=&quot;column1&quot; scope=&quot;row&quot;&gt;開発環境作成&lt;/th&gt;        &lt;td&gt;symfony init-app [アプリケーション名]&lt;/td&gt;        &lt;td&gt;アプリケーション作成（省略形app）&lt;/td&gt;     &lt;/tr&gt;      &lt;tr class=&quot;odd&quot;&gt;       &lt;th class=&quot;column1&quot; scope=&quot;row&quot;&gt;開発環境作成&lt;/th&gt;        &lt;td&gt;symfony init-module [アプリケーション名] [環境名]&lt;/td&gt;        &lt;td&gt;モジュール作成（省略形module）&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;th class=&quot;column1&quot; scope=&quot;row&quot;&gt;開発環境作成&lt;/th&gt;        &lt;td&gt;symfony init-controller [アプリケーション名] [環境名] [*コントローラー名]&lt;/td&gt;        &lt;td&gt;コントローラ作成（省略形controller）&lt;/td&gt;     &lt;/tr&gt;      &lt;tr class=&quot;odd&quot;&gt;       &lt;th class=&quot;column1&quot; scope=&quot;row&quot;&gt;開発環境作成&lt;/th&gt;        &lt;td&gt;symfony init-batch [defaultまたはrotate_log] [バッチファイル名] [アプリケーション名] [環境]&lt;/td&gt;        &lt;td&gt;バッチ作成（省略形batch）&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;th class=&quot;column1&quot; scope=&quot;row&quot;&gt;propel(DB関係)&lt;/th&gt;        &lt;td&gt;symfony propel-build-schema&lt;/td&gt;        &lt;td&gt;既存データベースからschema.yml作成&lt;/td&gt;     &lt;/tr&gt;      &lt;tr class=&quot;odd&quot;&gt;       &lt;th class=&quot;column1&quot; scope=&quot;row&quot;&gt;propel(DB関係)&lt;/th&gt;        &lt;td&gt;symfony propel-build-model&lt;/td&gt;        &lt;td&gt;schema.ymlからモデル作成&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;th class=&quot;column1&quot; scope=&quot;row&quot;&gt;propel(DB関係)&lt;/th&gt;        &lt;td&gt;symfony propel-build-db&lt;/td&gt;        &lt;td&gt;データベースを作成&lt;/td&gt;     &lt;/tr&gt;      &lt;tr class=&quot;odd&quot;&gt;       &lt;th class=&quot;column1&quot; scope=&quot;row&quot;&gt;propel(DB関係)&lt;/th&gt;        &lt;td&gt;symfony propel-build-sql&lt;/td&gt;        &lt;td&gt;schema.ymlからテーブル生成用SQL作成&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;th class=&quot;column1&quot; scope=&quot;row&quot;&gt;propel(DB関係)&lt;/th&gt;        &lt;td&gt;symfony propel-insert-sql&lt;/td&gt;        &lt;td&gt;SQLからテーブルを作成&lt;/td&gt;     &lt;/tr&gt;      &lt;tr class=&quot;odd&quot;&gt;       &lt;th class=&quot;column1&quot; scope=&quot;row&quot;&gt;propel(DB関係)&lt;/th&gt;        &lt;td&gt;symfony propel-build-all&lt;/td&gt;        &lt;td&gt;上の５つを全て行う。&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;th class=&quot;column1&quot; scope=&quot;row&quot;&gt;propel(DB関係)&lt;/th&gt;        &lt;td&gt;symfony propel-dump-data [アプリケーション名] [出力ファイル名]&lt;/td&gt;        &lt;td&gt;データをyaml形式でバックアップ&lt;/td&gt;     &lt;/tr&gt;      &lt;tr class=&quot;odd&quot;&gt;       &lt;th class=&quot;column1&quot; scope=&quot;row&quot;&gt;propel(DB関係)&lt;/th&gt;        &lt;td&gt;symfony propel-load-data [アプリケーション名]&lt;/td&gt;        &lt;td&gt;yaml形式のデータをDBにロードする。&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;th class=&quot;column1&quot; scope=&quot;row&quot;&gt;propel(DB関係)&lt;/th&gt;        &lt;td&gt;symfony propel-build-all-load [アプリケーション名]&lt;/td&gt;        &lt;td&gt;build-allにload処理も追加したマクロ&lt;/td&gt;     &lt;/tr&gt;      &lt;tr class=&quot;odd&quot;&gt;       &lt;th class=&quot;column1&quot; scope=&quot;row&quot;&gt;propel(DB関係)&lt;/th&gt;        &lt;td&gt;symfony propel-generate-crud [アプリケーション名] [モジュール名] [モデルクラス名]&lt;/td&gt;        &lt;td&gt;モデルからCRUDを自動生成&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;th class=&quot;column1&quot; scope=&quot;row&quot;&gt;propel(DB関係)&lt;/th&gt;        &lt;td&gt;symfony propel-init-crud [アプリケーション名] [モジュール名] [モデルクラス名]&lt;/td&gt;        &lt;td&gt;モデルからCRUDの自動生成・初期化&lt;/td&gt;     &lt;/tr&gt;      &lt;tr class=&quot;odd&quot;&gt;       &lt;th class=&quot;column1&quot; scope=&quot;row&quot;&gt;propel(DB関係)&lt;/th&gt;        &lt;td&gt;symfony propel-init-admin [アプリケーション名] [モジュール名] [モデルクラス名]&lt;/td&gt;        &lt;td&gt;モデルからDB管理画面の自動生成&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;th class=&quot;column1&quot; scope=&quot;row&quot;&gt;テスト&lt;/th&gt;        &lt;td&gt;symfony test [アプリケーション名]&lt;/td&gt;        &lt;td&gt;テストの実行&lt;/td&gt;     &lt;/tr&gt;      &lt;tr class=&quot;odd&quot;&gt;       &lt;th class=&quot;column1&quot; scope=&quot;row&quot;&gt;その他&lt;/th&gt;        &lt;td&gt;symfony fix-perms&lt;/td&gt;        &lt;td&gt;パーミッションを戻す&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;th class=&quot;column1&quot; scope=&quot;row&quot;&gt;その他&lt;/th&gt;        &lt;td&gt;symfony clear-controllers&lt;/td&gt;        &lt;td&gt;テスト用のコントローラを削除&lt;/td&gt;     &lt;/tr&gt;      &lt;tr class=&quot;odd&quot;&gt;       &lt;th class=&quot;column1&quot; scope=&quot;row&quot;&gt;その他&lt;/th&gt;        &lt;td&gt;symfony enable [アプリケーション名] [環境]&lt;/td&gt;        &lt;td&gt;特定のコントローラを有効にする&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;th class=&quot;column1&quot; scope=&quot;row&quot;&gt;その他&lt;/th&gt;        &lt;td&gt;symfony disable [アプリケーション名] [環境]&lt;/td&gt;        &lt;td&gt;特定のコントローラを無効にする&lt;/td&gt;     &lt;/tr&gt;      &lt;tr class=&quot;odd&quot;&gt;       &lt;th class=&quot;column1&quot; scope=&quot;row&quot;&gt;その他&lt;/th&gt;        &lt;td&gt;symfony freeze&lt;/td&gt;        &lt;td&gt;パッケージの作成&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;th class=&quot;column1&quot; scope=&quot;row&quot;&gt;その他&lt;/th&gt;        &lt;td&gt;symfony sync [アプリケーション名] [環境]&lt;/td&gt;        &lt;td&gt;サーバー転送同期処理&lt;/td&gt;     &lt;/tr&gt;      &lt;tr class=&quot;odd&quot;&gt;       &lt;th class=&quot;column1&quot; scope=&quot;row&quot;&gt;その他&lt;/th&gt;        &lt;td&gt;symfony purge-logs&lt;/td&gt;        &lt;td&gt;ログファイルの削除&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;th class=&quot;column1&quot; scope=&quot;row&quot;&gt;その他&lt;/th&gt;        &lt;td&gt;symfony rotate-log [アプリケーション名] [環境]&lt;/td&gt;        &lt;td&gt;ログファイルのローテーション&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;</content><link rel='replies' type='application/atom+xml' href='http://symfony-jp.blogspot.com/feeds/5222295996925511726/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4534132751277745913/5222295996925511726' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4534132751277745913/posts/default/5222295996925511726'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4534132751277745913/posts/default/5222295996925511726'/><link rel='alternate' type='text/html' href='http://symfony-jp.blogspot.com/2008/04/symfony.html' title='Symfonyコマンドの一覧'/><author><name>TK</name><uri>http://www.blogger.com/profile/12498260623824514942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4534132751277745913.post-6107455081431621371</id><published>2007-12-25T15:18:00.000+09:00</published><updated>2007-12-25T15:24:39.334+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="propel"/><category scheme="http://www.blogger.com/atom/ns#" term="symfony"/><title type='text'>MySQL用の設定方法</title><content type='html'>前提&lt;br /&gt;&lt;ol&gt;&lt;li&gt;MySQLをPHPから使用できるようphp.iniが設定されていること。&lt;/li&gt;&lt;li&gt;MySQLがセットアップされていること。&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;h3&gt;symfonyのpropelの設定（MySQL用）&lt;/h3&gt;symfonyインストール後、symfonyコマンドでプロジェクト作成を行うとデータベース接続用にpropelの設定ファイルが作られます。&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;[project-home]&lt;br /&gt;               |----config&lt;br /&gt;                           |----databases.yml&lt;br /&gt;                           |----propel.ini&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;それらを以下の設定に修正します。※databese名等の設定値は好きな値に変更してください。&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color:#ff6600;&quot;&gt;databases.ymlの設定&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt; all:  &lt;br /&gt;  propel:    &lt;br /&gt;    class:          sfPropelDatabase    &lt;br /&gt;    param:        &lt;br /&gt;       encoding:      utf8              # 文字コード        &lt;br /&gt;       phptype:       mysql             # 使用するデータベースシステム        &lt;br /&gt;       host:          localhost         # ホスト名        &lt;br /&gt;       database:      sample            # データベース名        &lt;br /&gt;       username:      root              # 接続ユーザー名        &lt;br /&gt;       password:      root              # 接続パスワード&lt;/pre&gt;&lt;/blockquote&gt;&lt;span style=&quot;color:#ff6600;&quot;&gt;propel.iniの設定（抜粋）&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;propel.database            = mysql&lt;br /&gt;propel.database.createUrl  = &lt;span lang=&quot;EN-US&quot;&gt;mysql://root:root@localhost/&lt;/span&gt;&lt;br /&gt;propel.database.url        =   &lt;span lang=&quot;EN-US&quot;&gt;mysql://root:root@localhost/sample&lt;br /&gt;&lt;/span&gt;propel.mysql.tableType     = InnoDB&lt;span lang=&quot;EN-US&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;; directories&lt;br /&gt;propel.home                    = .&lt;br /&gt;propel.output.dir              = d:projectphpsampleproject&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://symfony-jp.blogspot.com/feeds/6107455081431621371/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4534132751277745913/6107455081431621371' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4534132751277745913/posts/default/6107455081431621371'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4534132751277745913/posts/default/6107455081431621371'/><link rel='alternate' type='text/html' href='http://symfony-jp.blogspot.com/2007/12/mysqlphpphp.html' title='MySQL用の設定方法'/><author><name>TK</name><uri>http://www.blogger.com/profile/12498260623824514942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4534132751277745913.post-6641196870781621009</id><published>2007-12-25T14:18:00.000+09:00</published><updated>2007-12-25T15:22:01.258+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><category scheme="http://www.blogger.com/atom/ns#" term="propel"/><category scheme="http://www.blogger.com/atom/ns#" term="SQLite"/><category scheme="http://www.blogger.com/atom/ns#" term="symfony"/><title type='text'>SQLite用の設定方法</title><content type='html'>symfonyでは定番のMySQL以外にも、OracleやSQL Serverなどもデータベースとして使用できるらしいけど、&lt;br /&gt;とりあえず個人でいろいろテストするにはSQLiteが一番ちょうどいいような気がするのでSQLiteをセットアップしてみました。&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;SQLiteのインストール&lt;/h3&gt;&lt;br /&gt;XAMPPでWindowsにPHP環境を作った場合、SQLiteのセットアップはとても簡単でした。php.iniの以下の設定からコメントをはずすだけです。&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;;extension=php_pdo.dll&lt;br /&gt;;extension=php_pdo_sqlite.dll&lt;br /&gt;;extension=php_sqlite.dll&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;後は、apacheの再起動なりして、php.iniの設定を読み直します。&lt;br /&gt;phpinfo()を実行してSQLiteの項目が表示されれば成功です。&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;symfonyのpropelの設定&lt;/h3&gt;symfonyインストール後、symfonyコマンドでプロジェクト作成を行うとデータベース接続用にpropelの設定ファイルが作られます。&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;[project-home]&lt;br /&gt;           |----config&lt;br /&gt;                    |----databases.yml&lt;br /&gt;                    |----propel.ini&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;br /&gt;それらを以下の設定に修正します。※databese名等の設定値は好きな値に変更してください。&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(255, 102, 0);&quot;&gt;databases.ymlの設定&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;all:&lt;br /&gt;　　propel:  &lt;br /&gt;　　　　class:      　　sfPropelDatabase  &lt;br /&gt;　　　　param:    &lt;br /&gt;　　　　　　phptype:  sqlite    &lt;br /&gt;　　　　　　database: %SF_DATA_DIR%/database.db    &lt;br /&gt;　　　　　　encoding: utf8&lt;/pre&gt;&lt;/blockquote&gt;&lt;span style=&quot;color: rgb(255, 102, 0);&quot;&gt;propel.iniの設定（抜粋）&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;propel.database            = sqlite&lt;br /&gt;propel.database.createUrl  = sqlite://D://project/php/sampleproject/data/database.db&lt;br /&gt;propel.database.url        = sqlite://D://project/php/sampleproject/data/database.db&lt;br /&gt;&lt;br /&gt;; directories&lt;br /&gt;propel.home                    = .&lt;br /&gt;propel.output.dir              = d:projectphpsampleproject&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://symfony-jp.blogspot.com/feeds/6641196870781621009/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4534132751277745913/6641196870781621009' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4534132751277745913/posts/default/6641196870781621009'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4534132751277745913/posts/default/6641196870781621009'/><link rel='alternate' type='text/html' href='http://symfony-jp.blogspot.com/2007/12/symfonymysqloraclesql-server.html' title='SQLite用の設定方法'/><author><name>TK</name><uri>http://www.blogger.com/profile/12498260623824514942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4534132751277745913.post-7457355383831342841</id><published>2007-12-25T00:48:00.000+09:00</published><updated>2007-12-25T13:16:02.156+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="symfony"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows"/><category scheme="http://www.blogger.com/atom/ns#" term="インストール"/><title type='text'>symfonyのインストール</title><content type='html'>前提 XAMPPでApache＋PHPの環境がセットアップされていることを前提にします。 それ以外の場合、自分の環境に合わせて読み替えてください。  &lt;h3&gt;PEARのセットアップ &lt;/h3&gt; &lt;p style=&quot;font-family: Times New Roman;&quot;&gt;PEAR を使用してインストールをすると、バージョンアップなどがコマンド一つで行えるため管理がとても楽になります。  symfonyもPEARからインストールできます。以下手順参照。&lt;br /&gt;&lt;a href=&quot;http://pear.plus-server.net/index.html&quot; rel=&quot;nofollow&quot;&gt;&lt;/a&gt;&lt;/p&gt; &lt;ol&gt;&lt;li&gt;&lt;font color=&quot;#009900&quot;&gt;コマンドプロンプトを起動&lt;/font&gt;&lt;blockquote&gt;&lt;pre&gt;例：D:\xamppphp&lt;/pre&gt;&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;&lt;font color=&quot;#009900&quot;&gt;PEARコマンドで最新のPEARに更新する。&lt;/font&gt;&lt;blockquote&gt;&lt;pre&gt;$ pear upgrade PEAR&lt;/pre&gt;&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;&lt;font color=&quot;#009900&quot;&gt;PEARに &#39;symfony&#39; チャンネルを追加。&lt;/font&gt;&lt;blockquote&gt;&lt;pre&gt;$ pear channel-discover pear.symfony-project.com&lt;/pre&gt;&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;&lt;font color=&quot;#009900&quot;&gt;このチャンネル内で利用可能なライブラリを確認。（symfony関係が表示）&lt;/font&gt;&lt;blockquote&gt;&lt;pre&gt;$ pear remote-list -c symfony&lt;/pre&gt;&lt;/blockquote&gt;&lt;/li&gt;&lt;li&gt;&lt;font color=&quot;#009900&quot;&gt;XAMPPをインストールしたディレクトリのPHPディレクトリにコマンドプロンプトのカレントを移動&lt;/font&gt;&lt;/li&gt;&lt;/ol&gt;      &lt;h3&gt;symfonyのインストール &lt;/h3&gt;   &lt;font color=&quot;#009900&quot;&gt;以下のコマンドでsymfonyをインストール。（07/12/25現在最新は1.10）&lt;/font&gt; &lt;blockquote&gt;&lt;pre&gt;$ pear install symfony/symfony &lt;/pre&gt;&lt;/blockquote&gt;&lt;div style=&quot;margin-left: 40px;&quot;&gt; ※XAMPPインストールのデフォルトでPEARの設定を何も変更していないと、Cドライブ直下にPEAR関係のデータディレクトリ等が作成されます。  PEARの設定はいくつかありますが、設定一覧は以下のコマンドで確認できます。 &lt;/div&gt;&lt;blockquote style=&quot;margin-left: 40px;&quot;&gt;&lt;pre&gt;$ pear config-show&lt;/pre&gt;&lt;/blockquote&gt;&lt;div style=&quot;margin-left: 40px;&quot;&gt; ここにある設定のうち、以下の３つは変更しておくと、インストール先を好きな場所にすることができます。設定の変更は以下のコマンドで可能  &lt;/div&gt;&lt;blockquote style=&quot;margin-left: 40px;&quot;&gt;&lt;pre&gt;$ pear config-set doc_dir ディレクトリパス&lt;br&gt;$ pear config-set data_dir ディレクトリパス&lt;br&gt;$ pear config-set test_dir ディレクトリパス&lt;/pre&gt;&lt;/blockquote&gt;&lt;div style=&quot;margin-left: 40px;&quot;&gt; ディレクトリパスの部分を好きなパスに変えてください。ほかに設定を変えたい場合はコマンドは同じです。&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/div&gt;&lt;font color=&quot;#009900&quot;&gt;phing(symfonyの開発用ユーティリティセット)をインストール&lt;/font&gt;&lt;div style=&quot;margin-left: 40px;&quot;&gt;&lt;/div&gt; &lt;blockquote style=&quot;margin-left: 40px;&quot;&gt;&lt;pre&gt;$ pear config-set preferred_state alpha&lt;br&gt;$ pear -c .pearrc install -a http://phing.info/pear/phing-current.tgz&lt;/pre&gt;&lt;/blockquote&gt;&lt;font color=&quot;#009900&quot;&gt;&lt;/font&gt; &lt;p style=&quot;font-family: Times New Roman;&quot;&gt;※この際、正常にインストールができず、コマンドプロンプトが固まる現象が起きる場合あるようです。（Windows）&lt;/p&gt;&lt;p style=&quot;font-family: Times New Roman;&quot;&gt;PHPUnitのインストールで失敗するのようなので、インストール先のチャンネル設定を以下のようにしてから実行するとうまくいきました。 &lt;/p&gt;&lt;blockquote style=&quot;font-family: Times New Roman;&quot;&gt;&lt;pre&gt;$ pear channel-discover pear.phpunit.de&lt;br&gt;$ pear install phpunit/phpunit&lt;/pre&gt;&lt;/blockquote&gt; &lt;p style=&quot;font-family: Times New Roman;&quot;&gt;を実行してPHPUnitをインストール。  また、phingもインストール前に、チャンネルの更新。&lt;/p&gt; &lt;blockquote style=&quot;font-family: Times New Roman;&quot;&gt;&lt;pre&gt;$ pear channel-update pear.phing.info&lt;/pre&gt;&lt;/blockquote&gt; &lt;p style=&quot;font-family: Times New Roman;&quot;&gt;その後、以下のコマンドでインストール&lt;/p&gt; &lt;blockquote style=&quot;font-family: Times New Roman;&quot;&gt;&lt;pre&gt;$ pear install -a  phing/phing&lt;/pre&gt;&lt;/blockquote&gt;&lt;br&gt;&lt;p style=&quot;font-family: Times New Roman;&quot;&gt;※ここまででインストールされたパッケージは以下。(pear list -a で自分の環境を確認できる。)&lt;/p&gt; &lt;blockquote style=&quot;font-family: Times New Roman;&quot;&gt;&lt;pre&gt;INSTALLED PACKAGES, CHANNEL __URI:&lt;br&gt;==================================&lt;br&gt;(no packages installed)&lt;br&gt;INSTALLED PACKAGES, CHANNEL PEAR.PHING.INFO:&lt;br&gt;============================================&lt;br&gt;PACKAGE VERSION STATE&lt;br&gt;phing   2.3.0   stable&lt;br&gt;INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET:&lt;br&gt;=========================================&lt;br&gt;PACKAGE                 VERSION   STATE&lt;br&gt;Archive_Tar             1.3.2     stable&lt;br&gt;Benchmark               1.2.7     stable&lt;br&gt;Console_Getargs         1.3.4     stable&lt;br&gt;Console_Getopt          1.2.3     stable&lt;br&gt;Console_Table           1.0.7     stable&lt;br&gt;DB                      1.7.14RC1 beta&lt;br&gt;Log                     1.9.13    stable&lt;br&gt;MDB2                    2.5.0a2   alpha&lt;br&gt;PEAR                    1.7.0RC1  beta&lt;br&gt;PEAR_PackageFileManager 1.6.3     stable&lt;br&gt;PHP_CompatInfo          1.5.1     stable&lt;br&gt;PhpDocumentor           1.4.1     stable&lt;br&gt;Structures_Graph        1.0.2     stable&lt;br&gt;VersionControl_SVN      0.3.1     alpha&lt;br&gt;XML_Beautifier          1.1       stable&lt;br&gt;XML_Parser              1.2.8     stable&lt;br&gt;XML_Util                1.1.4     stable&lt;br&gt;INSTALLED PACKAGES, CHANNEL PEAR.PHPUNIT.DE:&lt;br&gt;============================================&lt;br&gt;PACKAGE VERSION STATE&lt;br&gt;PHPUnit 3.2.6   stable&lt;br&gt;INSTALLED PACKAGES, CHANNEL PEAR.SYMFONY-PROJECT.COM:&lt;br&gt;=====================================================&lt;br&gt;PACKAGE VERSION STATE&lt;br&gt;symfony 1.0.10  stable&lt;br&gt;INSTALLED PACKAGES, CHANNEL PECL.PHP.NET:&lt;br&gt;=========================================&lt;br&gt;(no packages installed)&lt;br&gt;&lt;/pre&gt;&lt;/blockquote&gt;  もし、この方法でも途中でインストールが失敗するようでしたら個別で一つずつインストールすることで対応できると思います。&lt;br&gt;&lt;br /&gt;&lt;p style=&quot;font-family: Times New Roman;&quot;&gt;インストールコマンドは以下。&lt;br&gt;&lt;/p&gt;&lt;br /&gt; &lt;blockquote style=&quot;font-family: Times New Roman;&quot;&gt;&lt;pre&gt;$ pear install パッケージ名&lt;/pre&gt;&lt;/blockquote&gt;&lt;p style=&quot;font-family: Times New Roman;&quot;&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style=&quot;font-family: Times New Roman;&quot;&gt;下記一覧がsymfony開発用にインストールされた機能一覧。&lt;br&gt;&lt;/p&gt; &lt;div style=&quot;font-family: Times New Roman;&quot; class=&quot;ie5&quot;&gt;&lt;table border=&quot;1&quot; bordercolor=&quot;#cccccc&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; height=&quot;147&quot; width=&quot;481&quot;&gt;&lt;thead&gt;&lt;tr align=&quot;center&quot; bgcolor=&quot;#cccccc&quot;&gt;&lt;td style=&quot;background-color: rgb(255, 255, 255);&quot; class=&quot;style_td&quot; bgcolor=&quot;#cccccc&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;パッケージ&lt;/font&gt;&lt;/td&gt;&lt;td style=&quot;background-color: rgb(255, 255, 255);&quot; class=&quot;style_td&quot; bgcolor=&quot;#cccccc&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;概要&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr bgcolor=&quot;#cccccc&quot;&gt;&lt;td style=&quot;background-color: rgb(255, 255, 255);&quot; class=&quot;style_td&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;&lt;a href=&quot;http://www.pake-project.org/&quot; rel=&quot;nofollow&quot;&gt;pake&lt;/a&gt;&lt;/font&gt;&lt;/td&gt;&lt;td style=&quot;background-color: rgb(255, 255, 255);&quot; class=&quot;style_td&quot; bgcolor=&quot;#cccccc&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;PHP版　Make&lt;br /&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr bgcolor=&quot;#cccccc&quot;&gt;&lt;td style=&quot;background-color: rgb(255, 255, 255);&quot; class=&quot;style_td&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;&lt;a href=&quot;http://creole.phpdb.org/trac/&quot; rel=&quot;nofollow&quot;&gt;creole&lt;/a&gt;&lt;/font&gt;&lt;/td&gt;&lt;td style=&quot;background-color: rgb(255, 255, 255);&quot; class=&quot;style_td&quot; bgcolor=&quot;#cccccc&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;データベース接続ツール&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr bgcolor=&quot;#cccccc&quot;&gt;&lt;td style=&quot;background-color: rgb(255, 255, 255);&quot; class=&quot;style_td&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;&lt;a href=&quot;http://propel.phpdb.org/trac/&quot; rel=&quot;nofollow&quot;&gt;propel&lt;/a&gt;&lt;/font&gt;&lt;/td&gt;&lt;td style=&quot;background-color: rgb(255, 255, 255);&quot; class=&quot;style_td&quot; bgcolor=&quot;#cccccc&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;OR マッピングツール&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr bgcolor=&quot;#cccccc&quot;&gt;&lt;td style=&quot;background-color: rgb(255, 255, 255);&quot; class=&quot;style_td&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;&lt;a href=&quot;http://http//phing.info/trac/wiki/WikiStart&quot; rel=&quot;nofollow&quot;&gt;phing&lt;/a&gt;&lt;/font&gt;&lt;/td&gt;&lt;td style=&quot;background-color: rgb(255, 255, 255);&quot; class=&quot;style_td&quot; bgcolor=&quot;#cccccc&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;開発用ユーティリティ JavaのAntみたいなもの。&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;  &lt;p style=&quot;font-family: Times New Roman;&quot;&gt;これで基本的なインストール完了です。&lt;/p&gt; &lt;p style=&quot;font-family: Times New Roman;&quot;&gt;コマンドラインツールによって直接呼び出せる全てのタスクを一見するには&lt;/p&gt; &lt;blockquote style=&quot;font-family: Times New Roman;&quot;&gt;&lt;pre&gt;$ symfony -T&lt;/pre&gt;&lt;/blockquote&gt; &lt;p style=&quot;font-family: Times New Roman;&quot;&gt;と入力してください。  いろいろコマンドが表示されれば、symfonyのインストール成功です。 &lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://symfony-jp.blogspot.com/feeds/7457355383831342841/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4534132751277745913/7457355383831342841' title='1 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4534132751277745913/posts/default/7457355383831342841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4534132751277745913/posts/default/7457355383831342841'/><link rel='alternate' type='text/html' href='http://symfony-jp.blogspot.com/2007/12/symfony-xamppapachephp-pear-pear.html' title='symfonyのインストール'/><author><name>TK</name><uri>http://www.blogger.com/profile/12498260623824514942</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>