composer have the pacakages requied to run our application
packages has special features which it give special things to our appication
composer install
it will install all the pacakges and dependencies
composer update
it will update the depenencies by locking the version in package
it has autoloader->
based on the apckages install-. it generates some autoload files
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"require": {
"php": "^7.1.3",
"barryvdh/laravel-cors": "^0.11.3",
"barryvdh/laravel-dompdf": "^0.8.5",
"fideloper/proxy": "^4.0",
"laravel/framework": "5.8.*",
"laravel/passport": "^7.3",
"laravel/tinker": "^1.0",
"league/flysystem-aws-s3-v3": "^1.0",
"maatwebsite/excel": "^3.1",
"phpoffice/phpspreadsheet": "^1.10",
"spatie/laravel-permission": "^2.37"
},
"require-dev": {
"beyondcode/laravel-dump-server": "^1.0",
"filp/whoops": "^2.0",
"fzaninotto/faker": "^1.4",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^3.0",
"phpunit/phpunit": "^7.5"
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Cmp\\": "process/cmp",
"Moderation\\": "process/moderation",
"ProfileModeration\\":"process/profile-moderation",
"Escalation\\":"process/escalation",
"CommentModeration\\":"process/comment-moderation",
"AdvertisementModeration\\":"process/advertisement-moderation",
"ImageModeration\\":"process/image-moderation",
"TextModeration\\": "process/text-moderation",
"MediaAnalysis\\": "process/media-analysis",
"Crawler\\": "process/crawler",
"PrintImports\\": "process/print-imports",
"ReviewClipping\\": "process/review-clipping"
},
"classmap": [
"database/seeds",
"database/factories"
]
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi"
]
}
}
No comments:
Post a Comment