Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
How to work with non laravel packages as i want to use https://packagist.org/packages/kerphi/phpfreechat this packages
You can use the simple composer functionality. Via commandline run:
composer require kerphi/phpfreechat
That's it the package classes should now be available within your application.
You can view the complete documentation on loading packagist dependancies on the composer website.
update
You won't be able to use this package as the package requires the slim framework. You can see this on the package github page: https://github.com/kerphi/phpfreechat and the index file called during javascript usage: https://github.com/stmolivier/phpfreechat/blob/master/server/index.php
If you are using windows then In cmd go to your project location and run this code
composer require kerphi/phpfreechat
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed last month.
Improve this question
I'm triying to create a new symfony project for class work and when I try to run the command to create it:
composer create-project symfony/skeleton:"^5.4" 2023-truiter-symfony
Gives me the next error:
symfony error
My PHP version is 8.1.12 and my composer version is 2.5.1
I've been trying to create a new symfony project without specifying the version and it works, but I would like that when the project is created it has the version ^5.4
Finally I have found a solution to the problem, I have installed CLI Symfony following the instructions from:
https://symfony.com/download
Once installed the problem when creating the project with the "^5.4" version has been solved.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I just wanted to ask if anyone knows why the scaffolding section isn't available in Laravel 8.x.
Recently I've tried the php artisan ui react but it didn't work.
And when I've tried it with the 7.x it worked fine.
Is Laravel dropping the support for that in 8.x or is it an upcoming feature or it has been changed to another method, thank you in advance.
Link to the documentation page here
From laravel 6 to 7 upgrade notes: https://laravel.com/docs/7.x/upgrade
All authentication scaffolding has been moved to the laravel/ui repository. If you are using Laravel's authentication scaffolding, you should install the ^2.0 release of this package and the package should be installed in all environments. If you were previously including this package in the require-dev portion of your application's composer.json file, you should move it to the require section:
composer require laravel/ui "^2.0"
Did you run the command above before running php artisan ui?
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I am using composer to install php packages. All packages are installed in Vendor folder. Some kind of package are easy to use in laravel but their are many php 3rd party package. Sometimes I need them to use in my laravel package.
My question is. How can I call php package from vendor folder to my laravel controller? If I can call them then I can use them. So I don't know how to call in laravel. But on my Row PHP project I can call them using autoloader.php But i don't understand how to call in laravel.
So please help me to use 3rd party php package/library in laravel.
If the package is inside the Vendor folder then in your controller function, call like this
$client = new \Package\Name\Class;
or
use Package\Name\Class;
$client = new Class;
Here is another reference
How can I use a class from vendor folder in laravel project
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
What is the real purpose of installing composer and node.js, and the npm install?
composer is the dependency manager for php laravel framework. Look at this link for more infomation on this: https://www.tutorialspoint.com/laravel/laravel_installation.htm
Node js : like #ceejayoz said, it is not mandatory for laravel but may be needed to hook up some external tools.
If by non install you meant npm install, npm is the package manager for node js (npm stands for nodejs package manager). This is a tool that lets you install several packages that work with nodejs. According to the npm website, npm lets you discover and re-use over 470,000 free code packages in the npm Registry.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I've been install 2 libraries into my php project. Now I want to remove on of them because I've install the wrong library (my bad). Is it okay if I just delete the folder ? If there is another way to do that correctly, please tell me.
Running the following command will remove the package from vendor (or wherever you install packages), composer.json and composer.lock. Change vendor/package appropriately.
composer remove vendor/package