douyue1998 2017-02-04 16:37
浏览 71

从laravel项目的角度来看,工匠和作曲家之间有什么区别?

I didn't know composer before laravel and i encountered them at the same time. So, I can't distinguish the commands of them, but memorize them.

What is the difference between php artisan and composer.phar and also the commands they run?

Can anyone help me on this issue? Thanks..

  • 写回答

2条回答 默认 最新

  • dping1968 2017-02-04 16:44
    关注

    Composer is a package manager for php and artisan is a command line tool using php

    Composer - download libraries

    Artisan - run scripted commands like you would in bash

    The reason to use artisan instead of direct php commands is that you have to implement certain functions so you get an universal feel to the commands. It will help with a lot of things like handling arguments. You could see it as a nice helper for writing great php command line tools.

    Once your command is generated, you should fill out the name and description properties of the class, which will be used when displaying your command on the list screen.

    The fire method will be called when your command is executed. You may place any command logic in this method. https://laravel.com/docs/5.0/commands

    评论

报告相同问题?

悬赏问题

  • ¥15 关于#网络安全#的问题:求ensp的网络安全,不要步骤要完成版文件
  • ¥15 可否在不同线程中调用封装数据库操作的类
  • ¥20 使用Photon PUN2解决游戏得分同步的问题
  • ¥15 微带串馈天线阵列每个阵元宽度计算
  • ¥15 keil的map文件中Image component sizes各项意思
  • ¥30 BC260Y用MQTT向阿里云发布主题消息一直错误
  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 Vue3 大型图片数据拖动排序