Laravel по-русски

Русское сообщество разработки на PHP-фреймворке Laravel.

Ты не вошёл. Вход тут.

#1 29.04.2016 11:08:47

htclog81
Откуда: Москва
Сообщений: 192
Сайт

Laravel 5 установка пакетов.

Всем привет!
Решил разобраться с установкой пакетов добавляя в composer.json

Вот его содержимое

{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "type": "project",
    "require": {
        "php": ">=5.5.9",
        "laravel/framework": "5.2.*",
         "landish/pagination": "~1.0",
         "laravelcollective/html": "5.1.*"
       

    },
    "require-dev": {
        "fzaninotto/faker": "~1.4",
        "mockery/mockery": "0.9.*",
        "phpunit/phpunit": "~4.0",
        "symfony/css-selector": "2.8.*|3.0.*",
        "symfony/dom-crawler": "2.8.*|3.0.*",
        "illuminate/html": "~5.0",
        "zizaco/entrust": "dev-laravel-5"
        
    },
    "autoload": {
        "classmap": [
            "database"
        ],
        "psr-4": {
            "App\\": "app/"
        }
    },
    "autoload-dev": {
        "classmap": [
            "tests/TestCase.php"
        ]
    },
    "scripts": {
        "post-root-package-install": [
            "php -r \"copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "php artisan key:generate"
        ],
        "post-install-cmd": [
            "php artisan clear-compiled",
            "php artisan optimize"
        ],
        "post-update-cmd": [
            "php artisan clear-compiled",
            "php artisan optimize"
        ]
    },
    "config": {
        "preferred-install": "dist"
    }
}

Добавлено:

"illuminate/html": "~5.0",
  "zizaco/entrust": "dev-laravel-5"

Пробовал и один пакет добавлять и не в require-dev а в require

Запускаю composer update

Результат:

Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files

То есть ничего не добавляется. В папке vendor смотрю ничего нового. Пробую создать service provider связанный с установленным пакетом класс не найден..

[size="1"][color="grey"]Добавлено через 25 минут[/color][/size]

alexey@nf-web1:~$ composer require zizaco/entrust
Using version ^1.7 for zizaco/entrust
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing doctrine/inflector (v1.1.0)
    Loading from cache

  - Installing illuminate/contracts (v5.2.31)
    Downloading: 100%

  - Installing paragonie/random_compat (v1.4.1)
    Downloading: 100%

  - Installing illuminate/support (v5.2.31)
    Downloading: 100%

  - Installing illuminate/cache (v5.2.31)
    Downloading: 100%

  - Installing symfony/console (v3.0.4)
    Downloading: 100%

  - Installing illuminate/console (v5.2.31)
    Downloading: 100%

  - Installing zizaco/entrust (1.7.0)
    Downloading: 100%

paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
illuminate/support suggests installing illuminate/filesystem (Required to use the composer class (5.2.*).)
illuminate/support suggests installing jeremeamia/superclosure (Required to be able to serialize closures (~2.2).)
illuminate/support suggests installing symfony/polyfill-php56 (Required to use the hash_equals function on PHP 5.5 (~1.0).)
illuminate/support suggests installing symfony/process (Required to use the composer class (2.8.*|3.0.*).)
illuminate/support suggests installing symfony/var-dumper (Improves the dd function (2.8.*|3.0.*).)
illuminate/cache suggests installing illuminate/database (Required to use the database cache driver (5.2.*).)
illuminate/cache suggests installing illuminate/filesystem (Required to use the file cache driver (5.2.*).)
illuminate/cache suggests installing illuminate/redis (Required to use the redis cache driver (5.2.*).)
symfony/console suggests installing symfony/event-dispatcher ()
symfony/console suggests installing symfony/process ()
symfony/console suggests installing psr/log (For using the console logger)
illuminate/console suggests installing guzzlehttp/guzzle (Required to use the ping methods on schedules (~5.3|~6.0).)
illuminate/console suggests installing mtdowling/cron-expression (Required to use scheduling component (~1.0).)
illuminate/console suggests installing symfony/process (Required to use scheduling component (2.8.*|3.0.*).)
Writing lock file
Generating autoload files

Вот таким образом пакеты скачиваються устанавливаются, а в папке vendor ничего нового нет, поиском zizaco искал текст/папки по всему проекту и ничего не нашел.

Не в сети

#2 29.04.2016 11:37:36

htclog81
Откуда: Москва
Сообщений: 192
Сайт

Re: Laravel 5 установка пакетов.

Проблема с правами на сервере оказалось. А по началу не в папке проекта к composer обращался. Админ смог установить нормально пакет

Не в сети

Подвал раздела