I am installing laravel 6.2 and i wish to heed to all suggestions laravel throws me when i create a new application. Without even installing a third party package, laravel suggests installing a lot of things some that look super important to ignore. here is my installation log
symfony/routing suggests installing doctrine/annotations (For using the annotat
on loader)
symfony/routing suggests installing symfony/config (For using the all-in-one ro
ter or any loader)
symfony/routing suggests installing symfony/expression-language (For using expr
ssion matching)
symfony/routing suggests installing symfony/yaml (For using the YAML loader)
symfony/event-dispatcher-contracts suggests installing psr/event-dispatcher
symfony/event-dispatcher suggests installing symfony/dependency-injection
symfony/http-kernel suggests installing symfony/browser-kit
symfony/http-kernel suggests installing symfony/config
symfony/http-kernel suggests installing symfony/dependency-injection
symfony/service-contracts suggests installing symfony/service-implementation
symfony/console suggests installing symfony/lock
swiftmailer/swiftmailer suggests installing true/punycode (Needed to support in
ernationalized email addresses, if ext-intl is not installed)
paragonie/random_compat suggests installing ext-libsodium (Provides a modern cr
pto API that can be used to generate random bytes.)
ramsey/uuid suggests installing ext-libsodium (Provides the PECL libsodium exte
sion for use with the SodiumRandomGenerator)
ramsey/uuid suggests installing ext-uuid (Provides the PECL UUID extension for
se with the PeclUuidTimeGenerator and PeclUuidRandomGenerator)
ramsey/uuid suggests installing moontoast/math (Provides support for converting
UUID to 128-bit integer (in string form).)
ramsey/uuid suggests installing paragonie/random-lib (Provides RandomLib for us
with the RandomLibAdapter)
ramsey/uuid suggests installing ramsey/uuid-console (A console application for
enerating UUIDs with ramsey/uuid)
ramsey/uuid suggests installing ramsey/uuid-doctrine (Allows the use of Ramsey\
uid\Uuid as Doctrine field type.)
symfony/translation suggests installing symfony/config
symfony/translation suggests installing symfony/yaml
monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages
to AWS services like DynamoDB)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log message
to a CouchDB server)
monolog/monolog suggests installing elasticsearch/elasticsearch (Allow sending
og messages to an Elasticsearch server via official client)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an
MQP server (1.0+ required))
monolog/monolog suggests installing ext-mongodb (Allow sending log messages to
MongoDB server (via driver))
monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messag
s to a GrayLog2 server)
monolog/monolog suggests installing mongodb/mongodb (Allow sending log messages
to a MongoDB server (via library))
monolog/monolog suggests installing php-amqplib/php-amqplib (Allow sending log
essages to an AMQP server using php-amqplib)
monolog/monolog suggests installing php-console/php-console (Allow sending log
essages to Google Chrome)
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages
to Rollbar)
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages
to an Elastic Search server)
league/flysystem suggests installing league/flysystem-aws-s3-v2 (Allows you to
se S3 storage with AWS SDK v2)
league/flysystem suggests installing league/flysystem-aws-s3-v3 (Allows you to
se S3 storage with AWS SDK v3)
league/flysystem suggests installing league/flysystem-azure (Allows you to use
indows Azure Blob storage)
league/flysystem suggests installing league/flysystem-cached-adapter (Flysystem
adapter decorator for metadata caching)
league/flysystem suggests installing league/flysystem-eventable-filesystem (All
ws you to use EventableFilesystem)
league/flysystem suggests installing league/flysystem-rackspace (Allows you to
se Rackspace Cloud Files)
league/flysystem suggests installing league/flysystem-sftp (Allows you to use S
TP server storage via phpseclib)
league/flysystem suggests installing league/flysystem-webdav (Allows you to use
WebDAV storage)
league/flysystem suggests installing league/flysystem-ziparchive (Allows you to
use ZipArchive adapter)
league/flysystem suggests installing spatie/flysystem-dropbox (Allows you to us
Dropbox storage)
league/flysystem suggests installing srmklive/flysystem-dropbox-v2 (Allows you
o use Dropbox storage for PHP 5 applications)
laravel/framework suggests installing aws/aws-sdk-php (Required to use the SQS
ueue driver, DynamoDb failed job storage and SES mail driver (^3.0).)
laravel/framework suggests installing doctrine/dbal (Required to rename columns
and drop SQLite columns (^2.6).)
laravel/framework suggests installing ext-memcached (Required to use the memcac
e cache driver.)
laravel/framework suggests installing ext-pcntl (Required to use all features o
the queue worker.)
laravel/framework suggests installing ext-posix (Required to use all features o
the queue worker.)
laravel/framework suggests installing ext-redis (Required to use the Redis cach
and queue drivers.)
laravel/framework suggests installing guzzlehttp/guzzle (Required to use the Ma
lgun mail driver and the ping methods on schedules (^6.0).)
laravel/framework suggests installing league/flysystem-aws-s3-v3 (Required to u
e the Flysystem S3 driver (^1.0).)
laravel/framework suggests installing league/flysystem-cached-adapter (Required
to use the Flysystem cache (^1.0).)
laravel/framework suggests installing league/flysystem-sftp (Required to use th
Flysystem SFTP driver (^1.0).)
laravel/framework suggests installing moontoast/math (Required to use ordered U
IDs (^1.1).)
laravel/framework suggests installing pda/pheanstalk (Required to use the beans
alk queue driver (^4.0).)
laravel/framework suggests installing psr/http-message (Required to allow Stora
e::put to accept a StreamInterface (^1.0).)
laravel/framework suggests installing pusher/pusher-php-server (Required to use
the Pusher broadcast driver (^4.0).)
laravel/framework suggests installing symfony/cache (Required to PSR-6 cache br
dge (^4.3.4).)
laravel/framework suggests installing symfony/psr-http-message-bridge (Required
to use PSR-7 bridging features (^1.2).)
laravel/framework suggests installing wildbit/swiftmailer-postmark (Required to
use Postmark mail driver (^3.0).)
psy/psysh suggests installing ext-pcntl (Enabling the PCNTL extension makes Psy
H a lot happier :))
psy/psysh suggests installing ext-pdo-sqlite (The doc command requires SQLite t
work.)
psy/psysh suggests installing ext-posix (If you have PCNTL, you'll want the POS
X extension as well.)
psy/psysh suggests installing hoa/console (A pure PHP readline implementation.
ou'll want this if your PHP install doesn't already support readline or libedit
)
filp/whoops suggests installing whoops/soap (Formats errors as SOAP responses)
facade/ignition suggests installing laravel/telescope (^2.0)
sebastian/global-state suggests installing ext-uopz (*)
sebastian/environment suggests installing ext-posix (*)
phpunit/php-code-coverage suggests installing ext-xdebug (^2.7.2)
phpunit/phpunit suggests installing ext-soap (*)
phpunit/phpunit suggests installing ext-xdebug (*)
phpunit/phpunit suggests installing phpunit/php-invoker (^2.0.0)
Generating optimized autoload files
> #php -r "file_exists('.env') || copy('.env.example', '.env');"
> #php artisan key:generate --ansi
←[32mApplication key set successfully.←[39m
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> #php artisan package:discover --ansi
Discovered Package: ←[32mfacade/ignition←[39m
Discovered Package: ←[32mfideloper/proxy←[39m
Discovered Package: ←[32mlaravel/tinker←[39m
Discovered Package: ←[32mnesbot/carbon←[39m
Discovered Package: ←[32mnunomaduro/collision←[39m
←[32mPackage manifest generated successfully.←[39m
Application ready! Build something amazing.
There are two things i am unsure about. How do i go about instaling the symphony suggestions and is there a complete list of all packages laravel suggests you install?.
Thanks.
You can ignore these suggestions, in my experience, you should eliminate any extra package that has no need on your system since this will cause more performance issues, compatibility issues, maintenance issues, security issue
You can use --no-suggest to disable suggestions when installing/updating.
Related
I was facing an issue to install laravel in my ubuntu. Please help me.
composer create-project laravel/laravel blog
I am getting this error. I had tried various options to solve this. And it never happened before.
Installing laravel/laravel (v8.0.1)
Installing laravel/laravel (v8.0.1): Loading from cache
Created project in blog
> #php -r "file_exists('.env') || copy('.env.example', '.env');"
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 106 installs, 0 updates, 0 removals
Installing voku/portable-ascii (1.5.3): Loading from cache
Installing symfony/polyfill-php80 (v1.18.1): Loading from cache
Installing symfony/polyfill-mbstring (v1.18.1): Loading from cache
Installing symfony/polyfill-ctype (v1.18.1): Loading from cache
Installing phpoption/phpoption (1.7.5): Loading from cache
Installing graham-campbell/result-type (v1.0.1): Loading from cache
Installing vlucas/phpdotenv (v5.1.0): Loading from cache
Installing symfony/css-selector (v5.1.5): Loading from cache
Installing tijsverkoyen/css-to-inline-styles (2.2.3): Loading from cache
Installing symfony/var-dumper (v5.1.5): Loading from cache
Installing symfony/deprecation-contracts (v2.2.0): Loading from cache
Installing symfony/routing (v5.1.5): Loading from cache
Installing symfony/process (v5.1.5): Loading from cache
Installing symfony/polyfill-php72 (v1.18.1): Loading from cache
Installing paragonie/random_compat (v9.99.99): Loading from cache
Installing symfony/polyfill-php70 (v1.18.1): Loading from cache
Installing symfony/polyfill-intl-normalizer (v1.18.1): Loading from cache
Installing symfony/polyfill-intl-idn (v1.18.1): Loading from cache
Installing symfony/mime (v5.1.5): Loading from cache
Installing symfony/polyfill-intl-grapheme (v1.18.1): Loading from cache
Installing symfony/string (v5.1.5): Loading from cache
Installing phpdocumentor/reflection-common (2.2.0): Loading from cache
Installing webmozart/assert (1.9.1): Loading from cache
Installing phpdocumentor/type-resolver (1.3.0): Loading from cache
Installing phpdocumentor/reflection-docblock (5.2.1): Loading from cache
Installing psr/log (1.1.3): Loading from cache
Installing symfony/polyfill-php73 (v1.18.1): Loading from cache
Installing symfony/http-foundation (v5.1.5): Loading from cache
Installing psr/event-dispatcher (1.0.0): Loading from cache
Installing symfony/event-dispatcher-contracts (v2.2.0): Loading from cache
Installing symfony/event-dispatcher (v5.1.5): Loading from cache
Installing symfony/error-handler (v5.1.5): Loading from cache
Installing symfony/http-kernel (v5.1.5): Loading from cache
Installing symfony/finder (v5.1.5): Loading from cache
Installing psr/container (1.0.0): Loading from cache
Installing symfony/service-contracts (v2.2.0): Loading from cache
Installing symfony/console (v5.1.5): Loading from cache
Installing symfony/polyfill-iconv (v1.18.1): Loading from cache
Installing doctrine/lexer (1.2.1): Loading from cache
Installing egulias/email-validator (2.1.20): Loading from cache
Installing swiftmailer/swiftmailer (v6.2.3): Loading from cache
Installing brick/math (0.9.1): Loading from cache
Installing ramsey/collection (1.1.1): Loading from cache
Installing ramsey/uuid (4.1.1): Loading from cache
Installing psr/simple-cache (1.0.1): Loading from cache
Installing opis/closure (3.5.7): Loading from cache
Installing symfony/translation-contracts (v2.2.0): Loading from cache
Installing symfony/translation (v5.1.5): Loading from cache
Installing nesbot/carbon (2.39.2): Loading from cache
Installing monolog/monolog (2.1.1): Loading from cache
Installing league/mime-type-detection (1.4.0): Loading from cache
Installing league/flysystem (1.1.3): Loading from cache
Installing league/commonmark (1.5.4): Loading from cache
Installing dragonmantank/cron-expression (3.0.1): Loading from cache
Installing doctrine/inflector (2.0.3): Loading from cache
Installing laravel/framework (v8.1.0): Loading from cache
Installing fideloper/proxy (4.4.0): Loading from cache
Installing asm89/stack-cors (v2.0.1): Loading from cache
Installing fruitcake/laravel-cors (v2.0.2): Loading from cache
Installing psr/http-message (1.0.1): Loading from cache
Installing psr/http-client (1.0.1): Loading from cache
Installing ralouphie/getallheaders (3.0.3): Loading from cache
Installing guzzlehttp/psr7 (1.6.1): Loading from cache
Installing guzzlehttp/promises (v1.3.1): Loading from cache
Installing guzzlehttp/guzzle (7.0.1): Loading from cache
Failed to execute unzip -qq
'/home/suraj/Documents/blog/vendor/guzzlehttp/guzzle/1bba4d447795efc234ccc89b858ab8a1' -d
'/home/suraj/Documents/blog/vendor/composer/44c036a4'
[/home/suraj/Documents/blog/vendor/guzzlehttp/guzzle/1bba4d447795efc234ccc89b858ab8a1]
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of
/home/suraj/Documents/blog/vendor/guzzlehttp/guzzle/1bba4d447795efc234ccc89b858ab8a1 or
/home/suraj/Documents/blog/vendor/guzzlehttp/guzzle/1bba4d447795efc234ccc89b858ab8a1.zip,
and cannot find
/home/suraj/Documents/blog/vendor/guzzlehttp/guzzle/1bba4d447795efc234ccc89b858ab8a1.ZIP,
period.
The archive may contain identical file names with different capitalization (which fails on
case insensitive filesystems)
Unzip with unzip command failed, falling back to ZipArchive class
Installing dnoegel/php-xdg-base-dir (v0.1.1): Loading from cache
Installing nikic/php-parser (v4.9.1): Loading from cache
Installing psy/psysh (v0.10.4): Loading from cache
Installing laravel/tinker (v2.4.2): Loading from cache
Installing scrivo/highlight.php (v9.18.1.2): Loading from cache
Installing filp/whoops (2.7.3): Loading from cache
Installing facade/ignition-contracts (1.0.1): Loading from cache
Installing facade/flare-client-php (1.3.5): Loading from cache
Installing facade/ignition (2.3.7): Loading from cache
Installing fzaninotto/faker (v1.9.1): Loading from cache
Installing hamcrest/hamcrest-php (v2.0.1): Loading from cache
Installing mockery/mockery (1.4.2): Loading from cache
Installing nunomaduro/collision (v5.0.2): Loading from cache
Installing sebastian/version (3.0.1): Loading from cache
Installing sebastian/type (2.2.1): Loading from cache
Installing sebastian/resource-operations (3.0.2): Loading from cache
Installing sebastian/recursion-context (4.0.2): Loading from cache
Installing sebastian/object-reflector (2.0.2): Loading from cache
Installing sebastian/object-enumerator (4.0.2): Loading from cache
Installing sebastian/global-state (5.0.0): Loading from cache
Installing sebastian/exporter (4.0.2): Loading from cache
Installing sebastian/environment (5.1.2): Loading from cache
Installing sebastian/diff (4.0.2): Loading from cache
Installing sebastian/comparator (4.0.3): Loading from cache
Installing sebastian/code-unit (1.0.5): Loading from cache
Installing sebastian/cli-parser (1.0.0): Loading from cache
Installing phpunit/php-timer (5.0.1): Loading from cache
Installing phpunit/php-text-template (2.0.2): Loading from cache
Installing phpunit/php-invoker (3.1.0): Loading from cache
Installing phpunit/php-file-iterator (3.0.4): Loading from cache
Installing sebastian/complexity (2.0.0): Loading from cache
Installing sebastian/lines-of-code (1.0.0): Loading from cache
Installing theseer/tokenizer (1.2.0): Loading from cache
Installing sebastian/code-unit-reverse-lookup (2.0.2): Loading from cache
Installing phpunit/php-code-coverage (9.1.8): Loading from cache
Installing doctrine/instantiator (1.3.1): Loading from cache
Installing phpspec/prophecy (1.11.1): Loading from cache
Installing phar-io/version (3.0.2): Loading from cache
Installing phar-io/manifest (2.0.1): Loading from cache
Installing myclabs/deep-copy (1.10.1): Loading from cache
Installing phpunit/phpunit (9.3.9): Loading from cache
symfony/routing suggests installing symfony/config (For using the all-in-one router or any
loader)
Symfony/routing suggests installing symfony/yaml (For using the YAML loader)
symfony/routing suggests installing symfony/expression-language (For using expression
matching)
symfony/routing suggests installing doctrine/annotations (For using the annotation loader)
paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that
can be used to generate random bytes.)
symfony/event-dispatcher suggests installing symfony/dependency-injection
symfony/http-kernel suggests installing symfony/browser-kit
symfony/http-kernel suggests installing symfony/config
symfony/http-kernel suggests installing symfony/dependency-injection
symfony/service-contracts suggests installing symfony/service-implementation
symfony/console suggests installing symfony/lock
swiftmailer/swiftmailer suggests installing true/punycode (Needed to support
internationalized email addresses, if ext-intl is not installed)
ramsey/uuid suggests installing ext-gmp (Enables faster math with arbitrary-precision
integers using GMP.)
ramsey/uuid suggests installing ext-uuid (Enables the use of PeclUuidTimeGenerator and
PeclUuidRandomGenerator.)
ramsey/uuid suggests installing ramsey/uuid-doctrine (Allows the use of Ramsey\Uuid\Uuid as
Doctrine field type.)
ramsey/uuid suggests installing paragonie/random-lib (Provides RandomLib for use with the
RandomLibAdapter)
symfony/translation suggests installing symfony/config
symfony/translation suggests installing symfony/yaml
monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a
GrayLog2 server)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a
CouchDB server)
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an
Elastic Search server)
monolog/monolog suggests installing elasticsearch/elasticsearch (Allow sending log messages
to an Elasticsearch server via official client)
monolog/monolog suggests installing php-amqplib/php-amqplib (Allow sending log messages to
an AMQP server using php-amqplib)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server
(1.0+ required))
monolog/monolog suggests installing ext-mongodb (Allow sending log messages to a MongoDB
server (via driver))
monolog/monolog suggests installing mongodb/mongodb (Allow sending log messages to a MongoDB
server (via library))
monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS
services like DynamoDB)
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
monolog/monolog suggests installing php-console/php-console (Allow sending log messages to
Google Chrome)
league/flysystem suggests installing league/flysystem-eventable-filesystem (Allows you to
use EventableFilesystem)
league/flysystem suggests installing league/flysystem-rackspace (Allows you to use Rackspace
Cloud Files)
league/flysystem suggests installing league/flysystem-azure (Allows you to use Windows Azure
Blob storage)
league/flysystem suggests installing league/flysystem-webdav (Allows you to use WebDAV
storage)
league/flysystem suggests installing league/flysystem-aws-s3-v2 (Allows you to use S3
storage with AWS SDK v2)
league/flysystem suggests installing league/flysystem-aws-s3-v3 (Allows you to use S3
storage with AWS SDK v3)
league/flysystem suggests installing spatie/flysystem-dropbox (Allows you to use Dropbox
storage)
league/flysystem suggests installing srmklive/flysystem-dropbox-v2 (Allows you to use
Dropbox storage for PHP 5 applications)
league/flysystem suggests installing league/flysystem-cached-adapter (Flysystem adapter
decorator for metadata caching)
league/flysystem suggests installing league/flysystem-sftp (Allows you to use SFTP server
storage via phpseclib)
league/flysystem suggests installing league/flysystem-ziparchive (Allows you to use
ZipArchive adapter)
laravel/framework suggests installing ext-memcached (Required to use the memcache cache
driver.)
laravel/framework suggests installing ext-redis (Required to use the Redis cache and queue
drivers (^4.0|^5.0).)
laravel/framework suggests installing aws/aws-sdk-php (Required to use the SQS queue driver,
DynamoDb failed job storage and SES mail driver (^3.0).)
laravel/framework suggests installing doctrine/dbal (Required to rename columns and drop
SQLite columns (^2.6).)
laravel/framework suggests installing league/flysystem-aws-s3-v3 (Required to use the
Flysystem S3 driver (^1.0).)
laravel/framework suggests installing league/flysystem-cached-adapter (Required to use the
Flysystem cache (^1.0).)
laravel/framework suggests installing league/flysystem-sftp (Required to use the Flysystem
SFTP driver (^1.0).)
laravel/framework suggests installing nyholm/psr7 (Required to use PSR-7 bridging features
(^1.2).)
laravel/framework suggests installing pda/pheanstalk (Required to use the beanstalk queue
driver (^4.0).)
laravel/framework suggests installing predis/predis (Required to use the predis connector
(^1.1.2).)
laravel/framework suggests installing pusher/pusher-php-server (Required to use the Pusher
broadcast driver (^4.0).)
laravel/framework suggests installing symfony/cache (Required to PSR-6 cache bridge (^5.1).)
laravel/framework suggests installing symfony/filesystem (Required to enable support for
relative symbolic links (^5.1).)
laravel/framework suggests installing symfony/psr-http-message-bridge (Required to use PSR-7
bridging features (^2.0).)
laravel/framework suggests installing wildbit/swiftmailer-postmark (Required to use Postmark
mail driver (^3.0).)
guzzlehttp/psr7 suggests installing zendframework/zend-httphandlerrunner (Emit PSR-7
responses)
psy/psysh suggests installing ext-readline (Enables support for arrow-key history
navigation, and showing and manipulating command history.)
psy/psysh suggests installing ext-pdo-sqlite (The doc command requires SQLite to work.)
psy/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.)
filp/whoops suggests installing whoops/soap (Formats errors as SOAP responses)
facade/ignition suggests installing laravel/telescope (^3.1)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/php-code-coverage suggests installing ext-pcov (*)
phpunit/php-code-coverage suggests installing ext-xdebug (*)
phpunit/phpunit suggests installing ext-xdebug (*)
Writing lock file
Generating optimized autoload files
Illuminate\Foundation\ComposerScripts::postAutoloadDump
Script Illuminate\Foundation\ComposerScripts::postAutoloadDump handling the post-autoload-
dump event terminated with an exception
[ErrorException]
require(/home/suraj/Documents/blog/vendor/composer/../guzzlehttp/guzzle/src
/functions_include.php): failed to open stream: No such file or directory
create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository
REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--
ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]
I used this and It works for me.
composer clear-cache
I'm installing a fresh Laravel 5.7 with this command:
composer global require laravel/installer
~/.composer/vendor/bin/laravel new plugin-test3
here is the full log:
Crafting application...
You should verify that the "storage" and "bootstrap/cache" directories are writable.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 86 installs, 0 updates, 0 removals
- Installing vlucas/phpdotenv (v2.5.1): Loading from cache
- Installing symfony/css-selector (v4.2.1): Loading from cache
- Installing tijsverkoyen/css-to-inline-styles (2.2.1): Loading from cache
- Installing symfony/polyfill-php72 (v1.10.0): Loading from cache
- Installing symfony/polyfill-mbstring (v1.10.0): Loading from cache
- Installing symfony/var-dumper (v4.2.1): Loading from cache
- Installing symfony/routing (v4.2.1): Loading from cache
- Installing symfony/process (v4.2.1): Loading from cache
- Installing symfony/polyfill-ctype (v1.10.0): Loading from cache
- Installing symfony/http-foundation (v4.2.1): Loading from cache
- Installing symfony/contracts (v1.0.2): Loading from cache
- Installing symfony/event-dispatcher (v4.2.1): Loading from cache
- Installing psr/log (1.1.0): Loading from cache
- Installing symfony/debug (v4.2.1): Loading from cache
- Installing symfony/http-kernel (v4.2.1): Loading from cache
- Installing symfony/finder (v4.2.1): Loading from cache
- Installing symfony/console (v4.2.1): Loading from cache
- Installing doctrine/lexer (v1.0.1): Loading from cache
- Installing egulias/email-validator (2.1.7): Loading from cache
- Installing swiftmailer/swiftmailer (v6.1.3): Loading from cache
- Installing paragonie/random_compat (v9.99.99): Loading from cache
- Installing ramsey/uuid (3.8.0): Loading from cache
- Installing psr/simple-cache (1.0.1): Loading from cache
- Installing psr/container (1.0.0): Loading from cache
- Installing opis/closure (3.1.2): Loading from cache
- Installing symfony/translation (v4.2.1): Loading from cache
- Installing nesbot/carbon (1.36.1): Loading from cache
- Installing monolog/monolog (1.24.0): Loading from cache
- Installing league/flysystem (1.0.49): Loading from cache
- Installing erusev/parsedown (1.7.1): Loading from cache
- Installing dragonmantank/cron-expression (v2.2.0): Loading from cache
- Installing doctrine/inflector (v1.3.0): Loading from cache
- Installing ralouphie/getallheaders (2.0.5): Loading from cache
- Installing psr/http-message (1.0.1): Loading from cache
- Installing guzzlehttp/psr7 (1.5.2): Loading from cache
- Installing guzzlehttp/promises (v1.3.1): Loading from cache
- Installing guzzlehttp/guzzle (6.3.3): Loading from cache
- Installing laravel/slack-notification-channel (v1.0.3): Loading from cache
- Installing laravel/framework (v5.7.19): Loading from cache
- Installing lcobucci/jwt (3.2.5): Loading from cache
- Installing php-http/promise (v1.0.0): Loading from cache
- Installing php-http/httplug (v1.1.0): Loading from cache
- Installing php-http/guzzle6-adapter (v1.1.1): Loading from cache
- Installing zendframework/zend-diactoros (1.8.6): Loading from cache
- Installing nexmo/client (1.6.0): Loading from cache
- Installing laravel/nexmo-notification-channel (v1.0.1): Loading from cache
- Installing fideloper/proxy (4.0.0): Loading from cache
- Installing nikic/php-parser (v4.1.0): Loading from cache
- Installing jakub-onderka/php-console-color (v0.2): Loading from cache
- Installing jakub-onderka/php-console-highlighter (v0.4): Loading from cache
- Installing dnoegel/php-xdg-base-dir (0.1): Loading from cache
- Installing psy/psysh (v0.9.9): Loading from cache
- Installing laravel/tinker (v1.0.8): Loading from cache
- Installing beyondcode/laravel-dump-server (1.2.2): Loading from cache
- Installing fzaninotto/faker (v1.8.0): Loading from cache
- Installing hamcrest/hamcrest-php (v2.0.0): Loading from cache
- Installing mockery/mockery (1.2.0): Loading from cache
- Installing filp/whoops (2.3.1): Loading from cache
- Installing nunomaduro/collision (v2.1.1): Loading from cache
- Installing sebastian/version (2.0.1): Loading from cache
- Installing sebastian/resource-operations (2.0.1): Loading from cache
- Installing sebastian/object-reflector (1.1.1): Loading from cache
- Installing sebastian/recursion-context (3.0.0): Loading from cache
- Installing sebastian/object-enumerator (3.0.3): Loading from cache
- Installing sebastian/global-state (2.0.0): Loading from cache
- Installing sebastian/exporter (3.1.0): Loading from cache
- Installing sebastian/environment (4.0.1): Loading from cache
- Installing sebastian/diff (3.0.1): Loading from cache
- Installing sebastian/comparator (3.0.2): Loading from cache
- Installing phpunit/php-timer (2.0.0): Loading from cache
- Installing phpunit/php-text-template (1.2.1): Loading from cache
- Installing phpunit/php-file-iterator (2.0.2): Loading from cache
- Installing theseer/tokenizer (1.1.0): Loading from cache
- Installing sebastian/code-unit-reverse-lookup (1.0.1): Loading from cache
- Installing phpunit/php-token-stream (3.0.1): Loading from cache
- Installing phpunit/php-code-coverage (6.1.4): Loading from cache
- Installing doctrine/instantiator (1.1.0): Loading from cache
- Installing webmozart/assert (1.3.0): Loading from cache
- Installing phpdocumentor/reflection-common (1.0.1): Loading from cache
- Installing phpdocumentor/type-resolver (0.4.0): Loading from cache
- Installing phpdocumentor/reflection-docblock (4.3.0): Loading from cache
- Installing phpspec/prophecy (1.8.0): Loading from cache
- Installing phar-io/version (2.0.1): Loading from cache
- Installing phar-io/manifest (1.0.3): Loading from cache
- Installing myclabs/deep-copy (1.8.1): Loading from cache
- Installing phpunit/phpunit (7.5.1): Loading from cache
symfony/routing suggests installing doctrine/annotations (For using the annotation loader)
symfony/routing suggests installing symfony/config (For using the all-in-one router or any loader)
symfony/routing suggests installing symfony/dependency-injection (For loading routes from a service)
symfony/routing suggests installing symfony/expression-language (For using expression matching)
symfony/routing suggests installing symfony/yaml (For using the YAML loader)
symfony/contracts suggests installing psr/cache (When using the Cache contracts)
symfony/contracts suggests installing symfony/cache-contracts-implementation
symfony/contracts suggests installing symfony/service-contracts-implementation
symfony/event-dispatcher suggests installing symfony/dependency-injection
symfony/http-kernel suggests installing symfony/browser-kit
symfony/http-kernel suggests installing symfony/config
symfony/http-kernel suggests installing symfony/dependency-injection
symfony/console suggests installing symfony/lock
swiftmailer/swiftmailer suggests installing true/punycode (Needed to support internationalized email addresses, if ext-intl is not installed)
paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
ramsey/uuid suggests installing ircmaxell/random-lib (Provides RandomLib for use with the RandomLibAdapter)
ramsey/uuid suggests installing ext-libsodium (Provides the PECL libsodium extension for use with the SodiumRandomGenerator)
ramsey/uuid suggests installing ext-uuid (Provides the PECL UUID extension for use with the PeclUuidTimeGenerator and PeclUuidRandomGenerator)
ramsey/uuid suggests installing moontoast/math (Provides support for converting UUID to 128-bit integer (in string form).)
ramsey/uuid suggests installing ramsey/uuid-doctrine (Allows the use of Ramsey\Uuid\Uuid as Doctrine field type.)
ramsey/uuid suggests installing ramsey/uuid-console (A console application for generating UUIDs with ramsey/uuid)
symfony/translation suggests installing symfony/config
symfony/translation suggests installing symfony/yaml
nesbot/carbon suggests installing friendsofphp/php-cs-fixer (Needed for the `composer phpcs` command. Allow to automatically fix code style.)
nesbot/carbon suggests installing phpstan/phpstan (Needed for the `composer phpstan` command. Allow to detect potential errors.)
monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
monolog/monolog suggests installing mongodb/mongodb (Allow sending log messages to a MongoDB server via PHP Driver)
monolog/monolog suggests installing php-amqplib/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)
monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome)
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
monolog/monolog suggests installing sentry/sentry (Allow sending log messages to a Sentry server)
league/flysystem suggests installing league/flysystem-aws-s3-v2 (Allows you to use S3 storage with AWS SDK v2)
league/flysystem suggests installing league/flysystem-aws-s3-v3 (Allows you to use S3 storage with AWS SDK v3)
league/flysystem suggests installing league/flysystem-azure (Allows you to use Windows Azure Blob storage)
league/flysystem suggests installing league/flysystem-cached-adapter (Flysystem adapter decorator for metadata caching)
league/flysystem suggests installing league/flysystem-eventable-filesystem (Allows you to use EventableFilesystem)
league/flysystem suggests installing league/flysystem-rackspace (Allows you to use Rackspace Cloud Files)
league/flysystem suggests installing league/flysystem-sftp (Allows you to use SFTP server storage via phpseclib)
league/flysystem suggests installing league/flysystem-webdav (Allows you to use WebDAV storage)
league/flysystem suggests installing league/flysystem-ziparchive (Allows you to use ZipArchive adapter)
league/flysystem suggests installing spatie/flysystem-dropbox (Allows you to use Dropbox storage)
league/flysystem suggests installing srmklive/flysystem-dropbox-v2 (Allows you to use Dropbox storage for PHP 5 applications)
laravel/framework suggests installing aws/aws-sdk-php (Required to use the SQS queue driver and SES mail driver (^3.0).)
laravel/framework suggests installing doctrine/dbal (Required to rename columns and drop SQLite columns (^2.6).)
laravel/framework suggests installing league/flysystem-aws-s3-v3 (Required to use the Flysystem S3 driver (^1.0).)
laravel/framework suggests installing league/flysystem-cached-adapter (Required to use the Flysystem cache (^1.0).)
laravel/framework suggests installing league/flysystem-rackspace (Required to use the Flysystem Rackspace driver (^1.0).)
laravel/framework suggests installing league/flysystem-sftp (Required to use the Flysystem SFTP driver (^1.0).)
laravel/framework suggests installing moontoast/math (Required to use ordered UUIDs (^1.1).)
laravel/framework suggests installing pda/pheanstalk (Required to use the beanstalk queue driver (^3.0).)
laravel/framework suggests installing predis/predis (Required to use the redis cache and queue drivers (^1.0).)
laravel/framework suggests installing pusher/pusher-php-server (Required to use the Pusher broadcast driver (^3.0).)
laravel/framework suggests installing symfony/dom-crawler (Required to use most of the crawler integration testing tools (^4.1).)
laravel/framework suggests installing symfony/psr-http-message-bridge (Required to psr7 bridging features (^1.0).)
lcobucci/jwt suggests installing mdanter/ecc (Required to use Elliptic Curves based algorithms.)
psy/psysh suggests installing ext-pdo-sqlite (The doc command requires SQLite to work.)
psy/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.)
filp/whoops suggests installing whoops/soap (Formats errors as SOAP responses)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/php-code-coverage suggests installing ext-xdebug (^2.6.0)
phpunit/phpunit suggests installing phpunit/php-invoker (^2.0)
phpunit/phpunit suggests installing ext-xdebug (*)
Writing lock file
Generating optimized autoload files
> #php -r "file_exists('.env') || copy('.env.example', '.env');"
> #php artisan key:generate --ansi
PHP Warning: Uncaught ErrorException: require(/Users/julien/Documents/Projets/plugin-test3/routes/api.php): failed to open stream: No such file or directory in /Users/julien/Documents/Projets/plugin-test3/vendor/laravel/framework/src/Illuminate/Routing/Router.php:417
Stack trace:
#0 /Users/julien/Documents/Projets/plugin-test3/vendor/laravel/framework/src/Illuminate/Routing/Router.php(417): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'require(/Users/...', '/Users/julien/D...', 417, Array)
#1 /Users/julien/Documents/Projets/plugin-test3/vendor/laravel/framework/src/Illuminate/Routing/Router.php(417): require()
#2 /Users/julien/Documents/Projets/plugin-test3/vendor/laravel/framework/src/Illuminate/Routing/Router.php(373): Illuminate\Routing\Router->loadRoutes('/Users/julien/D...')
#3 /Users/julien/Documents/Projets/plugin-test3/vendor/laravel/framework/src/Illuminate/Routing/RouteRegistrar.php(121): Illuminate\Routing\Router->group(Array, '/Users/julien/D...')
#4 /Users/julien/Documents/Projets/plugin-t in /Users/julien/Documents/Projets/plugin-test3/vendor/laravel/framework/src/Illuminate/Routing/Router.php on line 417
PHP Fatal error: Illuminate\Routing\Router::loadRoutes(): Failed opening required '/Users/julien/Documents/Projets/plugin-test3/routes/api.php' (include_path='.:/usr/local/Cellar/php/7.2.8/share/php/pear') in /Users/julien/Documents/Projets/plugin-test3/vendor/laravel/framework/src/Illuminate/Routing/Router.php on line 417
In Router.php line 417:
Illuminate\Routing\Router::loadRoutes(): Failed opening required '/Users/ju
lien/Documents/Projets/plugin-test3/routes/api.php' (include_path='.:/usr/l
ocal/Cellar/php/7.2.8/share/php/pear')
Script #php artisan key:generate --ansi handling the post-create-project-cmd event returned with error code 255
Application ready! Build something amazing.
I have the latest version of laravel installer:
~/.composer/vendor/bin/laravel --version
--> Laravel Installer 2.0.1
I also have php7.2
$ php --version
PHP 7.2.8 (cli) (built: Jul 19 2018 12:15:24) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.8, Copyright (c) 1999-2018, by Zend Technologies
What can I do about that?
I pulled an existing Laravel project from Git and created .env file which is missing. When I ran a composer install, error message
Your requirements could not be resolved to an installable set of packages.
Problem 1
- illuminate/support v5.6.27 requires php >=7.0 -> your PHP version (5.6.32) does not satisfy that requirement.
- illuminate/support v5.6.27 requires php >=7.0 -> your PHP version (5.6.32) does not satisfy that requirement.
- illuminate/support v5.6.27 requires php >=7.0 -> your PHP version (5.6.32) does not satisfy that requirement.
- illuminate/support v5.6.36 requires php >=7.0 -> your PHP version (5.6.32) does not satisfy that requirement.
- illuminate/support v5.6.5 requires php >=7.0 -> your PHP version (5.6.32) does not satisfy that requirement.
- illuminate/support v5.6.3 requires php >=7.0 -> your PHP version (5.6.32) does not satisfy that requirement.- illuminate/support v5.6.27 requires php >=7.0 -> your PHP version (5.6.32) does not satisfy that requirement.
- illuminate/support v5.6.28 requires php >=7.0 -> your PHP version (5.6.32) does not satisfy that requirement.
- illuminate/support v5.6.2 requires php >=7.0 -> your PHP version (5.6.32) does not satisfy that requirement.
- illuminate/support v5.6.27 requires php >=7.0 -> your PHP version (5.6.32) does not satisfy that requirement.
- illuminate/support v5.6.27 requires php >=7.0 -> your PHP version (5.6.32) does not satisfy that requirement.
- illuminate/support v5.6.27 requires php >=7.0 -> your PHP version (5.6.32) does not satisfy that requirement.
After which I install PHP 7.0 version. I tried to check the change using command which PHP but it still indicate PHP 5.6.27.
I ran composer install which installed to some point but ended with the following suggestion and error
- Installing phpunit/phpunit (6.5.8): Downloading (100%)
symfony/var-dumper suggests installing ext-symfony_debug ()
symfony/routing suggests installing doctrine/annotations (For using the annotation loader)
symfony/routing suggests installing symfony/config (For using the all-in-one router or any loader)
symfony/routing suggests installing symfony/dependency-injection (For loading routes from a service)
symfony/routing suggests installing symfony/expression-language (For using expression matching)
symfony/routing suggests installing symfony/yaml (For using the YAML loader)
paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
symfony/event-dispatcher suggests installing symfony/dependency-injection ()
symfony/http-kernel suggests installing symfony/browser-kit ()
symfony/http-kernel suggests installing symfony/class-loader ()
symfony/http-kernel suggests installing symfony/config ()
symfony/http-kernel suggests installing symfony/dependency-injection ()
symfony/console suggests installing symfony/filesystem ()
ramsey/uuid suggests installing ircmaxell/random-lib (Provides RandomLib for use with the RandomLibAdapter)
ramsey/uuid suggests installing ext-libsodium (Provides the PECL libsodium extension for use with the SodiumRandomGenerator)
ramsey/uuid suggests installing ext-uuid (Provides the PECL UUID extension for use with the PeclUuidTimeGenerator and PeclUuidRandomGenerator)
ramsey/uuid suggests installing moontoast/math (Provides support for converting UUID to 128-bit integer (in string form).)
ramsey/uuid suggests installing ramsey/uuid-doctrine (Allows the use of Ramsey\Uuid\Uuid as Doctrine field type.)
ramsey/uuid suggests installing ramsey/uuid-console (A console application for generating UUIDs with ramsey/uuid)
symfony/translation suggests installing symfony/config ()
symfony/translation suggests installing symfony/yaml ()
monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
monolog/monolog suggests installing mongodb/mongodb (Allow sending log messages to a MongoDB server via PHP Driver)
monolog/monolog suggests installing php-amqplib/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)
monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome)
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
monolog/monolog suggests installing sentry/sentry (Allow sending log messages to a Sentry server)
league/flysystem suggests installing league/flysystem-aws-s3-v2 (Allows you to use S3 storage with AWS SDK v2)
league/flysystem suggests installing league/flysystem-aws-s3-v3 (Allows you to use S3 storage with AWS SDK v3)
league/flysystem suggests installing league/flysystem-azure (Allows you to use Windows Azure Blob storage)
league/flysystem suggests installing league/flysystem-cached-adapter (Flysystem adapter decorator for metadata caching)
league/flysystem suggests installing league/flysystem-eventable-filesystem (Allows you to use EventableFilesystem)
league/flysystem suggests installing league/flysystem-rackspace (Allows you to use Rackspace Cloud Files)
league/flysystem suggests installing league/flysystem-sftp (Allows you to use SFTP server storage via phpseclib)
league/flysystem suggests installing league/flysystem-webdav (Allows you to use WebDAV storage)
league/flysystem suggests installing league/flysystem-ziparchive (Allows you to use ZipArchive adapter)
league/flysystem suggests installing spatie/flysystem-dropbox (Allows you to use Dropbox storage)
league/flysystem suggests installing srmklive/flysystem-dropbox-v2 (Allows you to use Dropbox storage for PHP 5 applications)
laravel/framework suggests installing aws/aws-sdk-php (Required to use the SQS queue driver and SES mail driver (~3.0).)
laravel/framework suggests installing doctrine/dbal (Required to rename columns and drop SQLite columns (~2.5).)
laravel/framework suggests installing ext-pcntl (Required to use all features of the queue worker.)
laravel/framework suggests installing guzzlehttp/guzzle (Required to use the Mailgun and Mandrill mail drivers and the ping methods on schedules (~6.0).)
laravel/framework suggests installing league/flysystem-aws-s3-v3 (Required to use the Flysystem S3 driver (~1.0).)
laravel/framework suggests installing league/flysystem-cached-adapter (Required to use Flysystem caching (~1.0).)
laravel/framework suggests installing league/flysystem-rackspace (Required to use the Flysystem Rackspace driver (~1.0).)
laravel/framework suggests installing nexmo/client (Required to use the Nexmo transport (~1.0).)
laravel/framework suggests installing pda/pheanstalk (Required to use the beanstalk queue driver (~3.0).)
laravel/framework suggests installing predis/predis (Required to use the redis cache and queue drivers (~1.0).)
laravel/framework suggests installing pusher/pusher-php-server (Required to use the Pusher broadcast driver (~3.0).)
laravel/framework suggests installing symfony/dom-crawler (Required to use most of the crawler integration testing tools (~3.3).)
laravel/framework suggests installing symfony/psr-http-message-bridge (Required to psr7 bridging features (~1.0).)
intervention/image suggests installing ext-imagick (to use Imagick based image processing.)
intervention/image suggests installing intervention/imagecache (Caching extension for the Intervention Image library)
psy/psysh suggests installing ext-pcntl (Enabling the PCNTL extension makes PsySH a lot happier :))
psy/psysh suggests installing ext-pdo-sqlite (The doc command requires SQLite to work.)
psy/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.)
filp/whoops suggests installing whoops/soap (Formats errors as SOAP responses)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/php-code-coverage suggests installing ext-xdebug (^2.5.5)
phpunit/phpunit suggests installing phpunit/php-invoker (^1.1)
phpunit/phpunit suggests installing ext-xdebug (*)
Writing lock file
Generating optimized autoload files
Illuminate\Foundation\ComposerScripts::postAutoloadDump
Parse error: syntax error, unexpected '?' in /Applications/MAMP/htdocs/folder/projectname/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php on line 233
I have installed PHP 7.0, but the version is yet to change. PHP 7 is the required version. How do I switch? I'm using Laravel on mac
How do I solve this problem? I need to set generate the APP_Key and start the serve.
Have you tried using brew?
$ brew unlink php56
$ brew install php70
Remember to restart apache...
After various attempts to solving this issue, the following are the steps that worked for me:
brew install brew tap homebrew/dupes
which shows "Warning: homebrew/core is shallow clone." To solve this problem, I ran
git -C "$(brew --repo homebrew/core)" fetch --unshallow
then
brew install brew-php-switcher
The above command installed brew-php-switcher dependencies and also php version 7.2.6. Running
vim ~/.bash_profile
to insert export PATH=/Applications/MAMP/bin/php/php7.2.6/bin:$PATH
Checked my php version with "php -v"
PHP 7.2.6 (cli) (built: Jun 5 2018 10:09:45) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.6, Copyright (c) 1999-2018, by Zend Technologies
P.S: I noticed that when I check the version using which the answer I got was
/usr/local/bin/php
I dont know why that is but just in case you encounter this, try using php --version or php -v
Trying to get a Laravel development environment set up on Windows 10 and am having a few issues.
The guide on the official Laravel website says it's easiest to have all the dependencies by using homestead.
https://laravel.com/docs/5.2/homestead
I have Vagrant and Homestead up and running. Homestead includes Composer preinstalled. The guides I've been reading to get into Vagrant recommend using the vagrant installer through Composer. Is Composer and the vagrant installer supposed to be ran from SSHing into the Homestead Vagrant box, or is Composer and the vagrant installer supposed to be ran locally through the shared folder?
If I run this locally I run into the following issue:
"Laravel New" successfully sets up a new laravel project, but before finishing warns me that there's a lot of things it recommends having installed also.
locally running 'laravel new'
symfony/var-dumper suggests installing ext-symfony_debug ()
symfony/translation suggests installing symfony/config ()
symfony/routing suggests installing doctrine/annotations (For using the annotation loader)
symfony/routing suggests installing symfony/config (For using the all-in-one router or any loader)
symfony/routing suggests installing symfony/dependency-injection (For loading routes from a service)
symfony/routing suggests installing symfony/expression-language (For using expression matching)
symfony/event-dispatcher suggests installing symfony/dependency-injection ()
symfony/http-kernel suggests installing symfony/browser-kit ()
symfony/http-kernel suggests installing symfony/class-loader ()
symfony/http-kernel suggests installing symfony/config ()
symfony/http-kernel suggests installing symfony/dependency-injection ()
psy/psysh suggests installing ext-pcntl (Enabling the PCNTL extension makes PsySH a lot happier :))
psy/psysh suggests installing ext-pdo-sqlite (The doc command requires SQLite to work.)
psy/psysh suggests installing ext-posix (If you have PCNTL, you'll want the POSIX extension as well.)
psy/psysh suggests installing ext-readline (Enables support for arrow-key history navigation, and showing and manipulating command history.)
paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
monolog/monolog suggests installing mongodb/mongodb (Allow sending log messages to a MongoDB server via PHP Driver)
monolog/monolog suggests installing php-amqplib/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)
monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome)
monolog/monolog suggests installing raven/raven (Allow sending log messages to a Sentry server)
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
league/flysystem suggests installing ext-fileinfo (Required for MimeType)
league/flysystem suggests installing league/flysystem-aws-s3-v2 (Allows you to use S3 storage with AWS SDK v2)
league/flysystem suggests installing league/flysystem-aws-s3-v3 (Allows you to use S3 storage with AWS SDK v3)
league/flysystem suggests installing league/flysystem-azure (Allows you to use Windows Azure Blob storage)
league/flysystem suggests installing league/flysystem-cached-adapter (Flysystem adapter decorator for metadata caching)
league/flysystem suggests installing league/flysystem-copy (Allows you to use Copy.com storage)
league/flysystem suggests installing league/flysystem-dropbox (Allows you to use Dropbox storage)
league/flysystem suggests installing league/flysystem-eventable-filesystem (Allows you to use EventableFilesystem)
league/flysystem suggests installing league/flysystem-rackspace (Allows you to use Rackspace Cloud Files)
league/flysystem suggests installing league/flysystem-sftp (Allows you to use SFTP server storage via phpseclib)
league/flysystem suggests installing league/flysystem-webdav (Allows you to use WebDAV storage)
league/flysystem suggests installing league/flysystem-ziparchive (Allows you to use ZipArchive adapter)
laravel/framework suggests installing aws/aws-sdk-php (Required to use the SQS queue driver and SES mail driver (~3.0).)
laravel/framework suggests installing doctrine/dbal (Required to rename columns and drop SQLite columns (~2.4).)
laravel/framework suggests installing guzzlehttp/guzzle (Required to use the Mailgun and Mandrill mail drivers and the ping methods on schedules (~5.3|~6.0).)
laravel/framework suggests installing league/flysystem-aws-s3-v3 (Required to use the Flysystem S3 driver (~1.0).)
laravel/framework suggests installing league/flysystem-rackspace (Required to use the Flysystem Rackspace driver (~1.0).)
laravel/framework suggests installing pda/pheanstalk (Required to use the beanstalk queue driver (~3.0).)
laravel/framework suggests installing predis/predis (Required to use the redis cache and queue drivers (~1.0).)
laravel/framework suggests installing pusher/pusher-php-server (Required to use the Pusher broadcast driver (~2.0).)
laravel/framework suggests installing symfony/psr-http-message-bridge (Required to psr7 bridging features (0.2.*).)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/phpunit-mock-objects suggests installing ext-soap (*)
phpunit/php-code-coverage suggests installing ext-xdebug (>=2.2.1)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
Is it normal to have this output when running 'laravel new'?
If I try to run 'laravel new' while ssh'd into the homestead box it just says
running 'laravel new' inside Homestead/vagrant
laravel: command not found
My question is..
If I'm meant to setup the Laravel with the Composer laravel installer locally, are these errors an issue? I just have Composer using a local PHP 7 install from the official PHP site - was there some other way I should've got PHP for Composer/Laravel development on W10?
If I'm meant to setup a new laravel project and use laravel installer from composer inside of Homestead, shouldn't Homestead already have Composers modules in the PATH? How would I go about adding laravel to the PATH for Composer inside the Vagrant/Homestead box if thats how it's meant to be used?
Or is the laravel installer thing with composer not how you're supposed to start a project? That was in the guide from laracasts but it just assumes Composer throws no errors and the laracasts guide doesn't use Homestead.
Thanks. Trying hard to get into this and feel ridiculous being stuck on an early step.
You must install a new laravel app after SSHing into the homestead machine. You must be getting
laravel: command not found
error as you are probably not executing
composer global require "laravel/installer"
before doing
laravel new <project_name>
Also, according to docs,
Make sure to place the ~/.composer/vendor/bin directory (or the
equivalent directory for your OS) in your PATH so the laravel
executable can be located by your system.
So you should place
export PATH="~/.composer/vendor/bin:$PATH"
in your .bashrc or something.
If this fails, then try
composer create-project --prefer-dist laravel/laravel <project_name>
Refer laravel docs here for more information.
Try to get a Laravel Development Environment through pre-installed composer
Type the following command on your command shell:
composer global require "laravel/installer=~1.1"
Then on typing which composer can get you the path:
On my system it is: C:\Users\user\AppData\Roaming\Composer\vendor\bin
After getting the path, copy the path and cd into it through your command shell,
then type:
laravel new project
A new Laravel development environment will be set up. You can see a new folder created once you visit that path.
I try to install symfony via composer on Windows 7 with command
$ composer create-project symfony/framework-standard-edition www1
And I get the error
[ErrorException]
Use of undefined constant STDIN - assumed 'STDIN'
What do I need to do to solve this issue?
PS This is full log:
C:\WebServers\home\asd>composer create-project symfony/framework-standard-edition www1
Warning: Composer should be invoked via the CLI version of PHP, not the cgi-fcgi SAPI
Installing symfony/framework-standard-edition (v2.6.4)
- Installing symfony/framework-standard-edition (v2.6.4)
Loading from cache
Created project in www1
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
- Installing doctrine/lexer (v1.0.1)
Loading from cache
- Installing doctrine/annotations (v1.2.3)
Loading from cache
- Installing twig/twig (v1.18.0)
Loading from cache
- Installing psr/log (1.0.0)
Loading from cache
- Installing doctrine/inflector (v1.0.1)
Loading from cache
- Installing doctrine/collections (v1.2)
Loading from cache
- Installing doctrine/cache (v1.4.0)
Loading from cache
- Installing doctrine/common (v2.4.2)
Loading from cache
- Installing symfony/symfony (v2.6.4)
Loading from cache
- Installing jdorn/sql-formatter (v1.2.17)
Loading from cache
- Installing doctrine/doctrine-cache-bundle (v1.0.1)
Loading from cache
- Installing doctrine/dbal (v2.4.4)
Loading from cache
- Installing doctrine/doctrine-bundle (v1.3.0)
Loading from cache
- Installing doctrine/orm (v2.4.7)
Loading from cache
- Installing incenteev/composer-parameter-handler (v2.1.0)
Loading from cache
- Installing sensiolabs/security-checker (v2.0.1)
Loading from cache
- Installing sensio/distribution-bundle (v3.0.16)
Loading from cache
- Installing sensio/framework-extra-bundle (v3.0.4)
Loading from cache
- Installing kriswallsmith/assetic (v1.2.1)
Loading from cache
- Installing symfony/assetic-bundle (v2.6.1)
Loading from cache
- Installing monolog/monolog (1.12.0)
Loading from cache
- Installing symfony/monolog-bundle (v2.7.1)
Loading from cache
- Installing swiftmailer/swiftmailer (v5.3.1)
Loading from cache
- Installing symfony/swiftmailer-bundle (v2.3.8)
Loading from cache
- Installing twig/extensions (v1.2.0)
Loading from cache
- Installing sensio/generator-bundle (v2.5.1)
Loading from cache
kriswallsmith/assetic suggests installing leafo/lessphp (Assetic provides the integration with the lessphp LESS compiler)
kriswallsmith/assetic suggests installing leafo/scssphp (Assetic provides the integration with the scssphp SCSS compiler)
kriswallsmith/assetic suggests installing leafo/scssphp-compass (Assetic provides the integration with the SCSS compass plugin)
kriswallsmith/assetic suggests installing patchwork/jsqueeze (Assetic provides the integration with the JSqueeze JavaScript compressor)
kriswallsmith/assetic suggests installing ptachoire/cssembed (Assetic provides the integration with phpcssembed to embed data uris)
symfony/assetic-bundle suggests installing kriswallsmith/spork (to be able to dump assets in parallel)
monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
monolog/monolog suggests installing raven/raven (Allow sending log messages to a Sentry server)
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
monolog/monolog suggests installing videlalvaro/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)
Generating autoload files
Would you like to install Acme demo bundle? [y/N]
[ErrorException]
Use of undefined constant STDIN - assumed 'STDIN'
create-project [-s|--stability="..."] [--prefer-source] [--prefer-dist] [--repository-url="..."] [--dev] [--no-dev] [--no-plugins] [--no-cus
tom-installers] [--no-scripts] [--no-progress] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [package] [directory] [version]
Also in got application were 3 empty files in folder "web/bundles" where must be folders of bundles with css files and images. Because of this there were no images on page "web/app_dev.php" in browser. Then I executed the command
php app/console assets:install web
and in "web/bundles" appeared images and css files and then images appeared on page "web/app_dev.php" so it displays correctly.
This error might appear because your php is installed CGI binary mode, not CLI. A workaround for this might be putting at the top of your AppKernel.php file following line:
define('STDIN',fopen("php://stdin","r"));
I found that launching composer in non-interactive mode (composer -n update) can help if the manual STDIN declaration solution is not practical to implement.
You might need to delete the vendor folders that are generating the prompts, or to use --prefer-source for example, but that's another story.