symfonyのアプリケーションの作成
symfonyでのアプリケーションの作成方法です。
1 |
php symfony generate:app [アプリケーション名] |
symfonyでのプロジェクトの作成
symfonyでのプロジェクトの作成方法
1 |
php lib/vendor/symfony/data/bin/symfony generate:project [プロジェクト名] --orm=Propel |
ORMをPropelでプロジェクトを作成するにはこのようにするべし
symfonyのコマンド一覧
symfonyのコマンド一覧です。
とりあえず備忘録
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
Usage: symfony [options] task_name [arguments] Options: --help -H Display this help message. --quiet -q Do not log messages to standard output. --trace -t Turn on invoke/execute tracing, enable full backtrace. --version -V Display the program version. --color Forces ANSI color output. --xml To output help as XML Available tasks: :help Displays help for a task :list Lists tasks app :routes Displays current routes for an application cache :clear Clears the cache (cc) configure :author Configure project author generate :app Generates a new application :module Generates a new module :project Generates a new project :task Creates a skeleton class for a new task i18n :extract Extracts i18n strings from php files :find Finds non "i18n ready" strings in an application log :clear Clears log files :rotate Rotates an application's log files plugin :add-channel Add a new PEAR channel :install Installs a plugin :list Lists installed plugins :publish-assets Publishes web assets for all plugins :uninstall Uninstalls a plugin :upgrade Upgrades a plugin project :clear-controllers Clears all non production environment controllers :deploy Deploys a project to another server :disable Disables an application in a given environment :enable Enables an application in a given environment : optimize Optimizes a project for better performance :permissions Fixes symfony directory permissions :send-emails Sends emails stored in a queue :validate Finds deprecated usage in a project symfony :test Launches the symfony test suite test :all Launches all tests :coverage Outputs test code coverage :functional Launches functional tests :unit Launches unit tests |
Macでの開発環境の設定 〜 PHPの設定 〜
MacへのPHPの設定です。
とりあえずconfigureの内容
1 |
./configure --prefix=/Users/hashizume/apps/app/php/5.2 --with-apxs2=/Users/hashizume/apps/app/httpd/bin/apxs --with-config-file-path=/Users/hashizume/apps/var/php/conf/5.2 --with-config-file-scan-dir=/Users/hashizume/apps/var/php/conf.d/5.2 --with-libxml-dir --with-openssl --with-openssl-dir --with-zlib --with-zlib-dir --with-bz2 --enable-calendar --with-curl --enable-exif --enable-ftp --with-gd --with-jpeg-dir=/Users/hashizume/apps/app/jpeg --with-png-dir=/Users/hashizume/apps/app/png --with-xpm-dir --with-ttf --with-freetype-dir=/Users/hashizume/apps/app/freetype --with-t1lib=/Users/hashizume/apps/app/t1lib --enable-gd-native-ttf --enable-gd-jis-conv --with-gettext=/Users/hashizume/apps/app/gettext --enable-mbstring --with-mcrypt=/Users/hashizume/apps/app/mcrypt --with-mysql=/Users/hashizume/apps/app/mysql --with-mysqli=/Users/hashizume/apps/app/mysql/bin/mysql_config --enable-pcntl --enable-pdo --with-pdo-mysql=/Users/hashizume/apps/app/mysql --enable-zip --with-xsl |
これで、make、make installで完了!!