Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/230.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Windows 10上Laravel Homestead的作曲家_Php_Laravel_Composer Php_Homestead - Fatal编程技术网

Php Windows 10上Laravel Homestead的作曲家

Php Windows 10上Laravel Homestead的作曲家,php,laravel,composer-php,homestead,Php,Laravel,Composer Php,Homestead,试图在Windows10上建立一个Laravel开发环境,我遇到了一些问题 拉拉维尔官方网站上的指南说,使用宅地最容易拥有所有的附属设施。 我有流浪汉和宅基地并在运行。宅地包括预装的作曲家。我一直在阅读的《进入流浪者》指南建议通过Composer使用流浪者安装程序。Composer和vagrant安装程序应该从SSHing运行到Homestead vagrant box,还是应该通过共享文件夹本地运行Composer和vagrant安装程序 如果在本地运行此操作,则会遇到以下问题: “Lara

试图在Windows10上建立一个Laravel开发环境,我遇到了一些问题

拉拉维尔官方网站上的指南说,使用宅地最容易拥有所有的附属设施。

我有流浪汉和宅基地并在运行。宅地包括预装的作曲家。我一直在阅读的《进入流浪者》指南建议通过Composer使用流浪者安装程序。Composer和vagrant安装程序应该从SSHing运行到Homestead vagrant box,还是应该通过共享文件夹本地运行Composer和vagrant安装程序

如果在本地运行此操作,则会遇到以下问题: “Laravel New”成功地建立了一个新的Laravel项目,但在完成之前,它警告我,它还建议安装很多东西

本地运行的“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)
运行“laravel new”时有此输出正常吗

如果我试着运行“laravel new”,而ssh将进入homestead框,它只会说

在宅地/流浪者中运行“laravel new”

laravel: command not found
我的问题是

如果我打算在本地使用Composer Laravel安装程序安装Laravel,这些错误是问题吗?我刚刚从官方PHP网站上安装了一个使用本地PHP7的Composer——是否有其他方法可以在W10上为Composer/Laravel开发PHP

如果我打算在Homestead内部设置一个新的laravel项目并使用composer的laravel安装程序,Homestead的路径中不应该已经有composer模块吗?我该如何在流浪者/宅地的盒子里为作曲家添加拉威尔,如果这就是它的用途的话

或者laravel安装程序与composer的关系不是你应该如何启动一个项目?这是《拉腊卡斯特指南》中的内容,但它只是假设作曲者没有出错,并且《拉腊卡斯特指南》没有使用“宅地”


谢谢。试图进入这一领域,却觉得在早期阶段就被卡住了很可笑。

你必须在进入homestead机器后安装一个新的laravel应用程序。你一定是疯了

laravel:未找到命令

错误,因为您可能没有执行

composer global require "laravel/installer"
做之前

laravel new <project_name>
在你的
.bashrc
或其他东西里

如果失败,请尝试

composer create-project --prefer-dist laravel/laravel <project_name>
composer创建项目--首选dist laravel/laravel

有关更多信息,请参阅laravel文档。

您必须在登录homestead机器后安装新的laravel应用程序。你一定是疯了

laravel:未找到命令

错误,因为您可能没有执行

composer global require "laravel/installer"
做之前

laravel new <project_name>
在你的
.bashrc
或其他东西里

如果失败,请尝试

composer create-project --prefer-dist laravel/laravel <project_name>
composer创建项目--首选dist laravel/laravel

有关更多信息,请参阅laravel文档。

尝试通过预装的composer获得一个laravel开发环境

在命令外壳上键入以下命令:

composer global require "laravel/installer=~1.1"
然后在键入
时,哪个编写器可以获得路径:
在我的系统上是:
C:\Users\user\AppData\Roaming\Composer\vendor\bin

获取路径后,通过命令shell将路径和
cd
复制到其中, 然后键入:

laravel new project

将建立一个新的Laravel开发环境。访问该路径后,您可以看到创建的新文件夹。

尝试通过预装的composer获得一个Laravel开发环境

在命令外壳上键入以下命令:

composer global require "laravel/installer=~1.1"
然后在键入
时,哪个编写器可以获得路径:
在我的系统上是:
C:\Users\user\AppData\Roaming\Composer\vendor\bin

获取路径后,通过命令shell将路径和
cd
复制到其中, 然后键入:

laravel new project

将建立一个新的Laravel开发环境。访问该路径后,您可以看到创建的新文件夹。

希望有人能尽快帮助您。别觉得可笑。我一直无法删除fu**ing Laravel 5内置的身份验证/注册,直到看到这篇文章之前我感觉有点糟糕:我希望有人能尽快帮助你。别觉得可笑。我一直无法删除fu**ing Laravel 5内置的Auth/Register,在看到这篇文章之前我感觉有点糟糕:DI确实做到了全球要求。不过最后一行还是行得通的。我想知道如果你没有更新你的
路径
,为什么laravel new不会在HomesteadMay工作。我已经用所需的信息编辑了答案。愚蠢的是,Homestead包括作曲家,以及Laravel/Installer。。但是没有在路径中设置Composer供应商/bin。我做了全局要求。不过最后一行还是行得通的。我想知道如果你没有更新你的
路径
,为什么laravel new不会在HomesteadMay工作。我已经用所需的信息编辑了答案。愚蠢的是,Homestead包括作曲家,以及Laravel/Installer。。但路径中未设置Composer供应商/bin。感谢您的参与,请使用正确的代码格式感谢您的参与,请使用正确的代码格式