composer-php

setting up phpChart in laravel

∥☆過路亽.° 提交于 2019-12-21 06:03:32
问题 Environment:Amazon EC2. Ubuntu x64. (GD library installed) I'm recently using phpChart for graph and report in laravel framework. I'm stuck at the beginning stage. Here's what I've done. 1.Unzip the contents in phpChart_Lite to /var/www/app/libraries/phpChart. 2.Edit composer.json and add : "autoload": { "classmap": [ ... "app/libraries" ] }, 3.run:composer dump-autoload 4.modify conf.php in phpChart_Lite define('SCRIPTPATH',app_path().'/libraries/phpChart_Lite/'); Here's my test page code: <

codecept: command not found

﹥>﹥吖頭↗ 提交于 2019-12-21 05:14:13
问题 I did a fresh installation of Ubuntu and after installing Yii2 etc I can't seem to be able to run codecept anymore. I'm using Yii2. I required the latest codecept version in composer.json which is working fine. But I can't seem to find a way to get codeception running again. I've been looking through all the guides but none of them have anything other then just to composer require or add it to the composer.json. I do have noticed when I wanted to add codecept to my $PATH that I don't have a

Yii2 fresh install: vendor/bower/jquery/dist path is wrong

≯℡__Kan透↙ 提交于 2019-12-21 01:57:52
问题 I just installed yii2 (advanced) using composer. I've setup nginx, etc. But it doesn't work: Invalid Parameter – yii\base\InvalidParamException The file or directory to be published does not exist: /srv/www/site/vendor/bower/jquery/dist In the folder 'vendor/bower' there is the only subfolder 'bower-assets' with 'jquery', etc in it. But no jquery in vendor/bower. How to solve this issue? 回答1: Please, refer the installation guide. It seems that you are missing asset plugin: composer global

Yii2 fresh install: vendor/bower/jquery/dist path is wrong

て烟熏妆下的殇ゞ 提交于 2019-12-21 01:57:34
问题 I just installed yii2 (advanced) using composer. I've setup nginx, etc. But it doesn't work: Invalid Parameter – yii\base\InvalidParamException The file or directory to be published does not exist: /srv/www/site/vendor/bower/jquery/dist In the folder 'vendor/bower' there is the only subfolder 'bower-assets' with 'jquery', etc in it. But no jquery in vendor/bower. How to solve this issue? 回答1: Please, refer the installation guide. It seems that you are missing asset plugin: composer global

Laravel 5 - Php artisan syntax error

☆樱花仙子☆ 提交于 2019-12-20 17:35:43
问题 I am currently developing an app with Laravel 5 and suddenly the artisan stoped working! I can't use a single command on it, it always return the error: [Symfony\Component\Debug\Exception\FatalErrorException] syntax error, unexpected ',', expecting variable (T_VARIABLE) I tried to update via composer but when the artisan tries to clear-complie Command: composer update > php artisan clear-compiled [Symfony\Component\Debug\Exception\FatalErrorException] syntax error, unexpected ',', expecting

Install dependency (doctrine/dbal) on composer laravel

僤鯓⒐⒋嵵緔 提交于 2019-12-20 09:46:34
问题 I am trying to execute a migration to rename some columns and I got an exception. As I read on the documentation I have to add the doctrine/dbal dependency to my composer.json file. How do I do that? Which is the correct composer.json file. I have many in my application. Is the one that is on the same level as the folders app,bootstrap, public and vendor. If so how do I add that dependency. Do I have to download anything? By the way im using easyphp, not wamp! Edit 1 After doing that the

How does the “replace” property work with composer?

那年仲夏 提交于 2019-12-20 08:27:35
问题 So how does the "replace" property work with composer? I have read the composer document but still not understand it. Searching for more info hasn't answered my questions. When I look at the composer.json file on Laravel/Framework on github. I can't see how replace will work. Can someone explain to me how this works? And what the variable "self.version" will equal to? 回答1: The Composer documentation gives two basic examples. I'll try to explain: Lists packages that are replaced by this

cloning laravel project from github

隐身守侯 提交于 2019-12-20 08:19:00
问题 I'm new to github and I found this site very useful for lot of us. I came up on storing my laravel project here in github, but theres a problem every time I will clone it to be able to go to production, when im about to clone it at first, it always show this error. Warning: require(C:\xampp\htdocs\tourismPortal\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\tourismPortal\bootstrap\autoload.php on line 17 Fatal error: require(): Failed

Composer shows conflict between 2 compatible packages (original)

天涯浪子 提交于 2019-12-20 07:50:45
问题 I have an error trying to composer install my dependencies. Same error with composer update . It says there's a conflict between symfony/web-server-bundle 4.3.3 and symfony 3.4 but those packages are supposed to be compatible: https://github.com/symfony/web-server-bundle/blob/4.3/composer.json https://packagist.org/packages/symfony/web-server-bundle Here is my console output: $ composer install --ignore-platform-reqs Deprecation warning: Your package name theredled/. is invalid, it should

Composer autoload file not working

有些话、适合烂在心里 提交于 2019-12-20 07:12:13
问题 My Autoload specification are as follows "autoload" : { "psr-4" : { "MyMVC\\" : "app/" }, "classmap": [ "app/Controllers", "app/Helpers" ], "files": ["app/routes.php"] }, The contents of routes.php file are: <?php use MyMVC\Core\Route; $route = new Route; $route->add('/', 'HomeController@index'); $route->add('about', 'AboutController@index'); $route->add('contact', 'ContactController@index'); now in my app/init.php i am trying to use the $route object but its giving me error Notice: Undefined