Есть аутсорст проект Ларавел. В нем отсутствует папка vendor, также я не нашел базу/ы данных. Поскольку есть composer.json - я стал копать в этом направлении, привожу его ниже Код (PHP): { "name": "laravel/laravel", "description": "The Laravel Framework.", "keywords": ["framework", "laravel"], "license": "MIT", "type": "project", "require": { "laravel/framework": "4.2.*", "zizaco/confide": "~4.0@dev", "zizaco/entrust": "1.2.*@dev", "lavary/laravel-menu": "dev-master#230c49575b8d549c139088ea67555213c9e39256", "bllim/datatables": "*", "laravelbook/ardent": "dev-master", "teepluss/theme": "1.*@dev", "phoenix/eloquent-meta": "1.2.*", "brouwers/shortcodes": "1.*", "maatwebsite/excel": "~1.2.1", "barryvdh/laravel-snappy": "0.1.x", "davejamesmiller/laravel-breadcrumbs":"2.*", "pda/pheanstalk": "~2.0", "anahkiasen/former": "~3.5", "chumper/zipper": "0.5.x", "ceesvanegmond/minify": "2.0.*" }, "require-dev":{ "way/generators": "~2.0", "barryvdh/laravel-debugbar": "~1.8", "barryvdh/laravel-ide-helper": "~1.11" }, "autoload": { "classmap": [ "app/commands", "app/controllers", "app/models", "app/database/migrations", "app/database/seeds", "app/tests/TestCase.php" ] }, "scripts": { "post-install-cmd": [ "php artisan clear-compiled", "php artisan optimize" ], "post-update-cmd": [ "php artisan clear-compiled", "php artisan optimize" ], "post-create-projecgitt-cmd": [ "php artisan key:generate" ] }, "config": { "preferred-install": "dist" }, "minimum-stability": "stable" } Т. е. это не совсем стандартный файл (в 2 раза больше стандартного Ларавел 4.2) Вылазит такая ошибка композера. Собственно папку Вендор он создает, но жутко ругается на недостаток классов. Код (PHP): Installing dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages. Problem 1 - Installation request for laravelbook/ardent dev-master -> satisfiable by laravelbook/ardent[dev-master]. - Conclusion: don't install laravel/framework v4.2.19 - Conclusion: don't install illuminate/support v5.2.21 - Conclusion: don't install laravel/framework v4.2.18 - Conclusion: don't install illuminate/support v5.2.19 - Conclusion: don't install illuminate/support v5.2.7 - Conclusion: don't install laravel/framework v4.2.17 - Conclusion: don't install illuminate/support v5.2.6 - Conclusion: don't install illuminate/support v5.2.0 - Conclusion: don't install laravel/framework v4.2.16 - Conclusion: don't install illuminate/support v5.1.31 - Conclusion: don't install illuminate/support v5.1.30 - Conclusion: don't install laravel/framework v4.2.15 - Conclusion: don't install illuminate/support v5.1.28 - Conclusion: don't install illuminate/support v5.1.25 - Conclusion: don't install laravel/framework v4.2.14 - Conclusion: don't install illuminate/support v5.1.22 - Conclusion: don't install illuminate/support v5.1.20 - Conclusion: don't install laravel/framework v4.2.13 - Conclusion: don't install illuminate/support v5.1.16 - Conclusion: don't install illuminate/support v5.1.13 - Conclusion: don't install laravel/framework v4.2.12 - Conclusion: don't install illuminate/support v5.1.8 - Conclusion: don't install illuminate/support v5.1.6 - Conclusion: don't install laravel/framework v4.2.11 - Installation request for lavary/laravel-menu dev-master#230c49575b8d549c139088ea67555213c9e39256 -> satisfiable by lavary/laravel-menu[dev-master]. - don't install illuminate/support v5.1.1|don't install laravel/framework v4.2.0 - don't install illuminate/support v5.1.1|don't install laravel/framework v4.2.1 - don't install illuminate/support v5.1.1|don't install laravel/framework v4.2.10 - don't install illuminate/support v5.1.1|don't install laravel/framework v4.2.2 - don't install illuminate/support v5.1.1|don't install laravel/framework v4.2.3 - don't install illuminate/support v5.1.1|don't install laravel/framework v4.2.4 - don't install illuminate/support v5.1.1|don't install laravel/framework v4.2.5 - don't install illuminate/support v5.1.1|don't install laravel/framework v4.2.6 - don't install illuminate/support v5.1.1|don't install laravel/framework v4.2.7 - don't install illuminate/support v5.1.1|don't install laravel/framework v4.2.8 - don't install illuminate/support v5.1.1|don't install laravel/framework v4.2.9 - laravelbook/ardent dev-master requires illuminate/support ~5.1 -> satisfiable by illuminate/support[v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.6, v5.2.7]. - Conclusion: don't install illuminate/support v5.1.2 - Installation request for laravel/framework 4.2.* -> satisfiable by laravel/framework[v4.2.0, v4.2.1, v4.2.10, v4.2.11, v4.2.12, v4.2.13, v4.2.14, v4.2.15, v4.2.16, v4.2.17, v4.2.18, v4.2.19, v4.2.2, v4.2.3, v4.2.4, v4.2.5, v4.2.6, v4.2.7, v4.2.8, v4.2.9]. Приведу ниже ещё конфиги App config. Собственно ему нехватает всех провайдеров, которые после зизако идут. Код (PHP): <?php return array( /* |-------------------------------------------------------------------------- | Application Debug Mode |-------------------------------------------------------------------------- | | When your application is in debug mode, detailed error messages with | stack traces will be shown on every error that occurs within your | application. If disabled, a simple generic error page is shown. | */ 'debug' => true, 'queryCacheTime' => 120, /* |-------------------------------------------------------------------------- | Application URL |-------------------------------------------------------------------------- | | This URL is used by the console to properly generate URLs when using | the Artisan command line tool. You should set this to the root of | your application so that it is used when running Artisan tasks. | */ 'url' => 'http://localhost', /* |-------------------------------------------------------------------------- | Application Timezone |-------------------------------------------------------------------------- | | Here you may specify the default timezone for your application, which | will be used by the PHP date and date-time functions. We have gone | ahead and set this to a sensible default for you out of the box. | */ 'timezone' => 'UTC', /* |-------------------------------------------------------------------------- | Application Locale Configuration |-------------------------------------------------------------------------- | | The application locale determines the default locale that will be used | by the translation service provider. You are free to set this value | to any of the locales which will be supported by the application. | */ 'locale' => 'ru', /* |-------------------------------------------------------------------------- | Application Fallback Locale |-------------------------------------------------------------------------- | | The fallback locale determines the locale to use when the current one | is not available. You may change the value to correspond to any of | the language folders that are provided through your application. | */ 'fallback_locale' => 'en', /* |-------------------------------------------------------------------------- | Encryption Key |-------------------------------------------------------------------------- | | This key is used by the Illuminate encrypter service and should be set | to a random, 32 character string, otherwise these encrypted strings | will not be safe. Please do this before deploying an application! | */ 'key' => 'JXx8ox000aIjOzqmkulYU3v74hjOBn4R', 'cipher' => MCRYPT_RIJNDAEL_128, /* |-------------------------------------------------------------------------- | Autoloaded Service Providers |-------------------------------------------------------------------------- | | The service providers listed here will be automatically loaded on the | request to your application. Feel free to add your own services to | this array to grant expanded functionality to your applications. | */ 'providers' => array( 'Illuminate\Foundation\Providers\ArtisanServiceProvider', 'Illuminate\Auth\AuthServiceProvider', 'Illuminate\Cache\CacheServiceProvider', 'Illuminate\Session\CommandsServiceProvider', 'Illuminate\Foundation\Providers\ConsoleSupportServiceProvider', 'Illuminate\Routing\ControllerServiceProvider', 'Illuminate\Cookie\CookieServiceProvider', 'Illuminate\Database\DatabaseServiceProvider', 'Illuminate\Encryption\EncryptionServiceProvider', 'Illuminate\Filesystem\FilesystemServiceProvider', 'Illuminate\Hashing\HashServiceProvider', 'Illuminate\Html\HtmlServiceProvider', 'Illuminate\Log\LogServiceProvider', 'Illuminate\Mail\MailServiceProvider', 'Illuminate\Database\MigrationServiceProvider', 'Illuminate\Pagination\PaginationServiceProvider', 'Illuminate\Queue\QueueServiceProvider', 'Illuminate\Redis\RedisServiceProvider', 'Illuminate\Remote\RemoteServiceProvider', 'Illuminate\Auth\Reminders\ReminderServiceProvider', 'Illuminate\Database\SeedServiceProvider', 'Illuminate\Session\SessionServiceProvider', 'Illuminate\Translation\TranslationServiceProvider', 'Illuminate\Validation\ValidationServiceProvider', 'Illuminate\View\ViewServiceProvider', 'Illuminate\Workbench\WorkbenchServiceProvider', 'Zizaco\Confide\ServiceProvider', 'Zizaco\Entrust\EntrustServiceProvider', 'Lavary\Menu\ServiceProvider', 'Bllim\Datatables\DatatablesServiceProvider', 'Former\FormerServiceProvider', 'Teepluss\Theme\ThemeServiceProvider', 'Phoenix\EloquentMeta\ServiceProvider', 'Brouwers\Shortcodes\ShortcodesServiceProvider', 'Maatwebsite\Excel\ExcelServiceProvider', 'Barryvdh\Snappy\ServiceProvider', 'DaveJamesMiller\Breadcrumbs\ServiceProvider', 'Chumper\Zipper\ZipperServiceProvider', 'CeesVanEgmond\Minify\MinifyServiceProvider', /*Dev */ // 'Way\Generators\GeneratorsServiceProvider', // 'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider', //'Barryvdh\Debugbar\ServiceProvider', ), /* |-------------------------------------------------------------------------- | Service Provider Manifest |-------------------------------------------------------------------------- | | The service provider manifest is used by Laravel to lazy load service | providers which are not needed for each request, as well to keep a | list of all of the services. Here, you may set its storage spot. | */ 'manifest' => storage_path() . '/meta', /* |-------------------------------------------------------------------------- | Class Aliases |-------------------------------------------------------------------------- | | This array of class aliases will be registered when this application | is started. However, feel free to register as many as you wish as | the aliases are "lazy" loaded so they don't hinder performance. | */ 'aliases' => array( 'App' => 'Illuminate\Support\Facades\App', 'Artisan' => 'Illuminate\Support\Facades\Artisan', 'Auth' => 'Illuminate\Support\Facades\Auth', 'Blade' => 'Illuminate\Support\Facades\Blade', 'Cache' => 'Illuminate\Support\Facades\Cache', 'ClassLoader' => 'Illuminate\Support\ClassLoader', 'Config' => 'Illuminate\Support\Facades\Config', 'Controller' => 'Illuminate\Routing\Controller', 'Cookie' => 'Illuminate\Support\Facades\Cookie', 'Crypt' => 'Illuminate\Support\Facades\Crypt', 'DB' => 'Illuminate\Support\Facades\DB', 'Eloquent' => 'Illuminate\Database\Eloquent\Model', 'Event' => 'Illuminate\Support\Facades\Event', 'File' => 'Illuminate\Support\Facades\File', 'Form' => 'Illuminate\Support\Facades\Form', 'Hash' => 'Illuminate\Support\Facades\Hash', 'HTML' => 'Illuminate\Support\Facades\HTML', 'Input' => 'Illuminate\Support\Facades\Input', 'Lang' => 'Illuminate\Support\Facades\Lang', 'Log' => 'Illuminate\Support\Facades\Log', 'Mail' => 'Illuminate\Support\Facades\Mail', 'Paginator' => 'Illuminate\Support\Facades\Paginator', 'Password' => 'Illuminate\Support\Facades\Password', 'Queue' => 'Illuminate\Support\Facades\Queue', 'Redirect' => 'Illuminate\Support\Facades\Redirect', 'Redis' => 'Illuminate\Support\Facades\Redis', 'Request' => 'Illuminate\Support\Facades\Request', 'Response' => 'Illuminate\Support\Facades\Response', 'Route' => 'Illuminate\Support\Facades\Route', 'Schema' => 'Illuminate\Support\Facades\Schema', 'Seeder' => 'Illuminate\Database\Seeder', 'Session' => 'Illuminate\Support\Facades\Session', 'SoftDeletingTrait' => 'Illuminate\Database\Eloquent\SoftDeletingTrait', 'SSH' => 'Illuminate\Support\Facades\SSH', 'Str' => 'Illuminate\Support\Str', 'URL' => 'Illuminate\Support\Facades\URL', 'Validator' => 'Illuminate\Support\Facades\Validator', 'View' => 'Illuminate\Support\Facades\View', 'Confide' => 'Zizaco\Confide\Facade', 'Entrust' => 'Zizaco\Entrust\EntrustFacade', 'Menu' => 'Lavary\Menu\Facade', 'Datatables' => 'Bllim\Datatables\Facade\Datatables', 'Former' => 'Former\Facades\Former', 'Theme' => 'Teepluss\Theme\Facades\Theme', 'Shortcode' => 'Brouwers\Shortcodes\Facades\Shortcode', 'Excel' => 'Maatwebsite\Excel\Facades\Excel', 'PDF' => 'Barryvdh\Snappy\Facades\SnappyPdf', 'Image' => 'Barryvdh\Snappy\Facades\SnappyImage', 'Breadcrumbs' => 'DaveJamesMiller\Breadcrumbs\Facade', 'Zipper' => 'Chumper\Zipper\Zipper', //Dev //'Debugbar' => 'Barryvdh\Debugbar\Facade', ), ); DataBases В общем ничего необычного, редис там и дефолт =mysql Код (PHP): <?php return array( /* |-------------------------------------------------------------------------- | PDO Fetch Style |-------------------------------------------------------------------------- | | By default, database results will be returned as instances of the PHP | stdClass object; however, you may desire to retrieve records in an | array format for simplicity. Here you can tweak the fetch style. | */ 'fetch' => PDO::FETCH_CLASS, /* |-------------------------------------------------------------------------- | Default Database Connection Name |-------------------------------------------------------------------------- | | Here you may specify which of the database connections below you wish | to use as your default connection for all database work. Of course | you may use many connections at once using the Database library. | */ 'default' => 'mysql', /* |-------------------------------------------------------------------------- | Database Connections |-------------------------------------------------------------------------- | | Here are each of the database connections setup for your application. | Of course, examples of configuring each database platform that is | supported by Laravel is shown below to make development simple. | | | All database work in Laravel is done through the PHP PDO facilities | so make sure you have the driver for your particular database of | choice installed on your machine before you begin development. | */ 'connections' => array( 'sqlite' => array( 'driver' => 'sqlite', 'database' => __DIR__.'/../database/production.sqlite', 'prefix' => '', ), 'mysql' => array( 'driver' => 'mysql', 'host' => 'localhost', 'database' => 'forсe', 'username' => 'forсe', 'password' => '', 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', ), 'pgsql' => array( 'driver' => 'pgsql', 'host' => 'localhost', 'database' => 'forсe', 'username' => 'forсe', 'password' => '', 'charset' => 'utf8', 'prefix' => '', 'schema' => 'public', ), 'sqlsrv' => array( 'driver' => 'sqlsrv', 'host' => 'localhost', 'database' => 'database', 'username' => 'root', 'password' => '', 'prefix' => '', ), ), /* |-------------------------------------------------------------------------- | Migration Repository Table |-------------------------------------------------------------------------- | | This table keeps track of all the migrations that have already run for | your application. Using this information, we can determine which of | the migrations on disk haven't actually been run in the database. | */ 'migrations' => 'migrations', /* |-------------------------------------------------------------------------- | Redis Databases |-------------------------------------------------------------------------- | | Redis is an open source, fast, and advanced key-value store that also | provides a richer set of commands than a typical key-value systems | such as APC or Memcached. Laravel makes it easy to dig right in. | */ 'redis' => array( 'cluster' => false, 'default' => array( 'host' => '127.0.0.1', 'port' => 6379, 'database' => 0, ), ), ); Мне нужно хотя бы запустить этот проект у себя на локалхост. Есть смысл пробовать композер чинить, или тут без нормального vendor не обойтись? Подсказка от модератора: Любой код или текст конфигурации пишите между тегом [code=php] и [/code]. Используйте отступы в коде для форматирования текста. Это помогает быстрее понять вас, увеличивает шанс на получение ответа. Что выделять? Например: PHP, HTML, CSS, JavaScript, SQL, XML, .htaccess, ini, регулярные выражения, код шаблонизаторов, любая другая разметка, результаты array/object dump и т. д.
Композер чинить? Тебе надо подобрать версии пакетов, чтобы избежать конфликта. То есть внести такие минимальные правки в версии в разделе require в composer.json чтобы требования сошлись. Найди кто там из пакетов захотел пятую версию ларавеля - именно его и надо понижать, указав конкретную версию под четвёртый ларавель. Избавься от упоминания @dev.
Тут изначально ларавел 4. Соответственно люди не должны были(которые до этого его разрабатывали) писать пятую версию с точки зрения того что это нифига не правильно для 4 версии и у них также бы ничего не работало. Из приведенных ниже ошибок вроде как виновники "lavary/laravel-menu": "dev-master#230c49575b8d549c139088ea67555213c9e39256", -- тут вообще строчка прикольная "laravelbook/ardent": "dev-master", -- также в ошибках И там и там не указана версия. Может разумнее поискать пропавший вендор? Напиши как версию понизить, если знаешь, пожалуйста.
Как понизить? Написать например блаблабла: 1.0.4 вместо блаблабла: 1.0.*@dev Этих блаблабла у тебя несколько штук. Какая-то из них поднасрала, т.к. её собственные требования с какой-то версии вошли в конфликт с остальными. Почитай про схемы версий композер.