라라벨 설치
composer를 이용해 설치
웹, 로컬에서모두 설치 가능
1composer create-project --prefer-dist laravel/laravel blog
뭔가 어마어마하게 설치를 해 댄다…(설치 완료 후 … 31.7 MB)
1Installing laravel/laravel (v5.7.15)
2- Installing laravel/laravel (v5.7.15): Downloading (100%)
3Created project in blog
4> @php -r "file_exists('.env') || copy('.env.example', '.env');"
5Loading composer repositories with package information
6Updating dependencies (including require-dev)
7Package operations: 86 installs, 0 updates, 0 removals
8- Installing vlucas/phpdotenv (v2.5.1): Downloading (100%)
9- Installing symfony/css-selector (v4.2.1): Downloading (100%)
10- Installing tijsverkoyen/css-to-inline-styles (2.2.1): Downloading (100%)
11- Installing symfony/polyfill-php72 (v1.10.0): Downloading (100%)
12- Installing symfony/polyfill-mbstring (v1.10.0): Downloading (100%)
13- Installing symfony/var-dumper (v4.2.1): Downloading (100%)
14- Installing symfony/routing (v4.2.1): Downloading (100%)
15- Installing symfony/process (v4.2.1): Downloading (100%)
16- Installing symfony/polyfill-ctype (v1.10.0): Downloading (100%)
17- Installing symfony/http-foundation (v4.2.1): Downloading (100%)
18- Installing symfony/contracts (v1.0.2): Downloading (100%)
19- Installing symfony/event-dispatcher (v4.2.1): Downloading (100%)
20- Installing psr/log (1.1.0): Loading from cache
21- Installing symfony/debug (v4.2.1): Downloading (100%)
22- Installing symfony/http-kernel (v4.2.1): Downloading (100%)
23- Installing symfony/finder (v4.2.1): Downloading (100%)
24- Installing symfony/console (v4.2.1): Downloading (100%)
25- Installing doctrine/lexer (v1.0.1): Downloading (100%)
26- Installing egulias/email-validator (2.1.7): Downloading (100%)
27- Installing swiftmailer/swiftmailer (v6.1.3): Downloading (100%)
28- Installing paragonie/random_compat (v9.99.99): Downloading (100%)
29- Installing ramsey/uuid (3.8.0): Downloading (100%)
30- Installing psr/simple-cache (1.0.1): Downloading (100%)
31- Installing psr/container (1.0.0): Downloading (100%)
32- Installing opis/closure (3.1.1): Downloading (100%)
33- Installing symfony/translation (v4.2.1): Downloading (100%)
34- Installing nesbot/carbon (1.36.1): Downloading (100%)
35- Installing monolog/monolog (1.24.0): Downloading (100%)
36- Installing league/flysystem (1.0.49): Downloading (100%)
37- Installing erusev/parsedown (1.7.1): Downloading (100%)
38- Installing dragonmantank/cron-expression (v2.2.0): Downloading (100%)
39- Installing doctrine/inflector (v1.3.0): Downloading (100%)
40- Installing ralouphie/getallheaders (2.0.5): Downloading (100%)
41- Installing psr/http-message (1.0.1): Downloading (100%)
42- Installing guzzlehttp/psr7 (1.5.2): Downloading (100%)
43- Installing guzzlehttp/promises (v1.3.1): Downloading (100%)
44- Installing guzzlehttp/guzzle (6.3.3): Downloading (100%)
45- Installing laravel/slack-notification-channel (v1.0.2): Downloading (100%)
46- Installing laravel/framework (v5.7.16): Downloading (100%)
47- Installing lcobucci/jwt (3.2.5): Downloading (100%)
48- Installing php-http/promise (v1.0.0): Downloading (100%)
49- Installing php-http/httplug (v1.1.0): Downloading (100%)
50- Installing php-http/guzzle6-adapter (v1.1.1): Downloading (100%)
51- Installing zendframework/zend-diactoros (1.8.6): Downloading (100%)
52- Installing nexmo/client (1.5.2): Downloading (100%)
53- Installing laravel/nexmo-notification-channel (v1.0.1): Downloading (100%)
54- Installing fideloper/proxy (4.0.0): Downloading (100%)
55- Installing nikic/php-parser (v4.1.0): Downloading (100%)
56- Installing jakub-onderka/php-console-color (v0.2): Downloading (100%)
57- Installing jakub-onderka/php-console-highlighter (v0.4): Downloading (100%)
58- Installing dnoegel/php-xdg-base-dir (0.1): Downloading (100%)
59- Installing psy/psysh (v0.9.9): Downloading (100%)
60- Installing laravel/tinker (v1.0.8): Downloading (100%)
61- Installing beyondcode/laravel-dump-server (1.2.2): Downloading (100%)
62- Installing fzaninotto/faker (v1.8.0): Downloading (100%)
63- Installing hamcrest/hamcrest-php (v2.0.0): Downloading (100%)
64- Installing mockery/mockery (1.2.0): Downloading (100%)
65- Installing filp/whoops (2.3.1): Downloading (100%)
66- Installing nunomaduro/collision (v2.1.1): Downloading (100%)
67- Installing sebastian/version (2.0.1): Downloading (100%)
68- Installing sebastian/resource-operations (2.0.1): Downloading (100%)
69- Installing sebastian/object-reflector (1.1.1): Downloading (100%)
70- Installing sebastian/recursion-context (3.0.0): Downloading (100%)
71- Installing sebastian/object-enumerator (3.0.3): Downloading (100%)
72- Installing sebastian/global-state (2.0.0): Downloading (100%)
73- Installing sebastian/exporter (3.1.0): Downloading (100%)
74- Installing sebastian/environment (4.0.1): Downloading (100%)
75- Installing sebastian/diff (3.0.1): Loading from cache
76- Installing sebastian/comparator (3.0.2): Downloading (100%)
77- Installing phpunit/php-timer (2.0.0): Downloading (100%)
78- Installing phpunit/php-text-template (1.2.1): Downloading (100%)
79- Installing phpunit/php-file-iterator (2.0.2): Downloading (100%)
80- Installing theseer/tokenizer (1.1.0): Downloading (100%)
81- Installing sebastian/code-unit-reverse-lookup (1.0.1): Downloading (100%)
82- Installing phpunit/php-token-stream (3.0.1): Loading from cache
83- Installing phpunit/php-code-coverage (6.1.4): Downloading (100%)
84- Installing doctrine/instantiator (1.1.0): Downloading (100%)
85- Installing webmozart/assert (1.3.0): Downloading (100%)
86- Installing phpdocumentor/reflection-common (1.0.1): Downloading (100%)
87- Installing phpdocumentor/type-resolver (0.4.0): Downloading (100%)
88- Installing phpdocumentor/reflection-docblock (4.3.0): Downloading (100%)
89- Installing phpspec/prophecy (1.8.0): Loading from cache
90- Installing phar-io/version (2.0.1): Downloading (100%)
91- Installing phar-io/manifest (1.0.3): Downloading (100%)
92- Installing myclabs/deep-copy (1.8.1): Loading from cache
93- Installing phpunit/phpunit (7.5.0): Downloading (100%)
94symfony/routing suggests installing doctrine/annotations (For using the annotation loader)
95symfony/routing suggests installing symfony/config (For using the all-in-one router or any loader)
96symfony/routing suggests installing symfony/dependency-injection (For loading routes from a service)
97symfony/routing suggests installing symfony/expression-language (For using expression matching)
98symfony/routing suggests installing symfony/yaml (For using the YAML loader)
99symfony/contracts suggests installing psr/cache (When using the Cache contracts)
100symfony/contracts suggests installing symfony/cache-contracts-implementation
101symfony/contracts suggests installing symfony/service-contracts-implementation
102symfony/event-dispatcher suggests installing symfony/dependency-injection
103symfony/http-kernel suggests installing symfony/browser-kit
104symfony/http-kernel suggests installing symfony/config
105symfony/http-kernel suggests installing symfony/dependency-injection
106symfony/console suggests installing symfony/lock
107swiftmailer/swiftmailer suggests installing true/punycode (Needed to support internationalized email addresses, if ext-intl is not installed)
108paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
109ramsey/uuid suggests installing ircmaxell/random-lib (Provides RandomLib for use with the RandomLibAdapter)
110ramsey/uuid suggests installing ext-libsodium (Provides the PECL libsodium extension for use with the SodiumRandomGenerator)
111ramsey/uuid suggests installing ext-uuid (Provides the PECL UUID extension for use with the PeclUuidTimeGenerator and PeclUuidRandomGenerator)
112ramsey/uuid suggests installing moontoast/math (Provides support for converting UUID to 128-bit integer (in string form).)
113ramsey/uuid suggests installing ramsey/uuid-doctrine (Allows the use of Ramsey\Uuid\Uuid as Doctrine field type.)
114ramsey/uuid suggests installing ramsey/uuid-console (A console application for generating UUIDs with ramsey/uuid)
115symfony/translation suggests installing symfony/config
116symfony/translation suggests installing symfony/yaml
117nesbot/carbon suggests installing friendsofphp/php-cs-fixer (Needed for the `composer phpcs` command. Allow to automatically fix code style.)
118nesbot/carbon suggests installing phpstan/phpstan (Needed for the `composer phpstan` command. Allow to detect potential errors.)
119monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
120monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
121monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
122monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
123monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
124monolog/monolog suggests installing mongodb/mongodb (Allow sending log messages to a MongoDB server via PHP Driver)
125monolog/monolog suggests installing php-amqplib/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)
126monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome)
127monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
128monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
129monolog/monolog suggests installing sentry/sentry (Allow sending log messages to a Sentry server)
130league/flysystem suggests installing ext-ftp (Allows you to use FTP server storage)
131league/flysystem suggests installing league/flysystem-aws-s3-v2 (Allows you to use S3 storage with AWS SDK v2)
132league/flysystem suggests installing league/flysystem-aws-s3-v3 (Allows you to use S3 storage with AWS SDK v3)
133league/flysystem suggests installing league/flysystem-azure (Allows you to use Windows Azure Blob storage)
134league/flysystem suggests installing league/flysystem-cached-adapter (Flysystem adapter decorator for metadata caching)
135league/flysystem suggests installing league/flysystem-eventable-filesystem (Allows you to use EventableFilesystem)
136league/flysystem suggests installing league/flysystem-rackspace (Allows you to use Rackspace Cloud Files)
137league/flysystem suggests installing league/flysystem-sftp (Allows you to use SFTP server storage via phpseclib)
138league/flysystem suggests installing league/flysystem-webdav (Allows you to use WebDAV storage)
139league/flysystem suggests installing league/flysystem-ziparchive (Allows you to use ZipArchive adapter)
140league/flysystem suggests installing spatie/flysystem-dropbox (Allows you to use Dropbox storage)
141league/flysystem suggests installing srmklive/flysystem-dropbox-v2 (Allows you to use Dropbox storage for PHP 5 applications)
142laravel/framework suggests installing aws/aws-sdk-php (Required to use the SQS queue driver and SES mail driver (^3.0).)
143laravel/framework suggests installing doctrine/dbal (Required to rename columns and drop SQLite columns (^2.6).)
144laravel/framework suggests installing ext-pcntl (Required to use all features of the queue worker.)
145laravel/framework suggests installing ext-posix (Required to use all features of the queue worker.)
146laravel/framework suggests installing league/flysystem-aws-s3-v3 (Required to use the Flysystem S3 driver (^1.0).)
147laravel/framework suggests installing league/flysystem-cached-adapter (Required to use the Flysystem cache (^1.0).)
148laravel/framework suggests installing league/flysystem-rackspace (Required to use the Flysystem Rackspace driver (^1.0).)
149laravel/framework suggests installing league/flysystem-sftp (Required to use the Flysystem SFTP driver (^1.0).)
150laravel/framework suggests installing moontoast/math (Required to use ordered UUIDs (^1.1).)
151laravel/framework suggests installing pda/pheanstalk (Required to use the beanstalk queue driver (^3.0).)
152laravel/framework suggests installing predis/predis (Required to use the redis cache and queue drivers (^1.0).)
153laravel/framework suggests installing pusher/pusher-php-server (Required to use the Pusher broadcast driver (^3.0).)
154laravel/framework suggests installing symfony/dom-crawler (Required to use most of the crawler integration testing tools (^4.1).)
155laravel/framework suggests installing symfony/psr-http-message-bridge (Required to psr7 bridging features (^1.0).)
156lcobucci/jwt suggests installing mdanter/ecc (Required to use Elliptic Curves based algorithms.)
157psy/psysh suggests installing ext-pcntl (Enabling the PCNTL extension makes PsySH a lot happier :))
158psy/psysh suggests installing ext-posix (If you have PCNTL, you'll want the POSIX extension as well.)
159psy/psysh suggests installing ext-pdo-sqlite (The doc command requires SQLite to work.)
160psy/psysh suggests installing hoa/console (A pure PHP readline implementation. You'll want this if your PHP install doesn't already support readline or libedit.)
161filp/whoops suggests installing whoops/soap (Formats errors as SOAP responses)
162sebastian/global-state suggests installing ext-uopz (*)
163phpunit/phpunit suggests installing phpunit/php-invoker (^2.0)
164phpunit/phpunit suggests installing ext-soap (*)
165Writing lock file
166Generating optimized autoload files
167> Illuminate\Foundation\ComposerScripts::postAutoloadDump
168> @php artisan package:discover --ansi
169Discovered Package: beyondcode/laravel-dump-server
170Discovered Package: fideloper/proxy
171Discovered Package: laravel/nexmo-notification-channel
172Discovered Package: laravel/slack-notification-channel
173Discovered Package: laravel/tinker
174Discovered Package: nesbot/carbon
175Discovered Package: nunomaduro/collision
176Package manifest generated successfully.
177> @php artisan key:generate --ansi
178Application key set successfully.
PHPStorm 을 이용한 설치 1
PHPStorm 을 이용한 설치 1
로컬에서만 사용가능
File→settings(Ctrl + Alt + S)
Tools → Command Line Tool Support 선택
+
버튼 클릭해서 팝업창이 뜨면, Composer 선택, global 선택(프로젝트에서만 사용하려면 project 선택)
- Path to PHP executable : php.exe 경로 선택(C:\Bitnami\wampstack-7.1.24-1\php\php.exe)
- Path to Composer.phar or composer : composer.phar 경로 선택(C:\ProgramData\ComposerSetup\bin\composer.phar)
적용 후 설정창이 닫히면,
상단 메뉴에 Tools → Composer → Init Composer 선택
다시 Tools → Composer → manage defendence 선택 후 설정(이 메뉴가 활성화가 안되었다면 Init Composer 메뉴를 한 번더 클릭해 주세요.)
Install 버튼 클릭
PHPStorm 을 이용한 설치 2
로컬에서만 사용가능
File → New Porject → Composer Project 선택
아래 그림처럼 셋팅 후 create 누르면 됨.
설치 완료 후(옵션)
npm install 실행 해 줄 것
참고 문헌
- Laravel 설치하기. 라라벨 개발 환경 구축하기
- HOW TO CONFIGURE PHPSTORM FOR LARAVEL
- [Laravel] L5.4 시작하기 라라벨 Hello World.
'프로그래밍 > PHP' 카테고리의 다른 글
KG이니시스 결제 프로그램 PHP 7.2 버전 이상 암복호화 오류 수정 (0) | 2018.12.23 |
---|---|
CS-CART 애드온 만들기 (0) | 2018.12.23 |
서브도메인으로 접속시 루트도메인으로 이동(redirect)시키기(.htaccess 이용) (0) | 2018.11.10 |
[메모]쿠키(Cookie)에 대하여 (0) | 2016.06.12 |
HTTP 응답 상태코드 범주 및 상태코드 (0) | 2016.06.10 |