I want to install a PHP SOCKET CLIENT , that name's aysheka/socket to octobercms. but I don't have any idea.
There's 2 options. First one is more preferable!
Last thing, always check Documentation before asking, or use October's IRC chat / forum instead. Good luck.
@canthis Thanks a lot, I get It.
i ve installed october , i ve installed composer and i ve downloaded a package - guzzlehttp/guzzle - via composer and set it right
i want to use that package in my theme , but how ?
there s no tutorial or documentation
@ulaskorpe Use plugins for that. Themes are not meant for complicated PHP functionality, that is meant to be contained with plugins and their components.
As a side note, take a read through https://luketowers.ca/blog/how-to-use-laravel-packages-in-october-cms-plugins/ to see the full process of using Laravel Packages in October plugins.
As above. The concept of "packages" are plugins in October, which subsequently do support composer packages in some limited fashion.
there is no composer file in my project root folder. Is that correct? or I deleted it by mistake?
@iamike Did you install via the installer or composer?
from installer
There was an issue I commented on a while back regarding your same issue. The installer installs the "consumer" version, which doesn't include the composer.json file or the tests directory. If you want to use those features, you'll need to copy them from the github into your project.
i installed october via installer,i copy composer.json from october repository into my project root , when i install guzzlehttp/guzzle,it installed failed,with the message
Installation failed, reverting ./composer.json to its original content.
[RuntimeException]
Could not scan for classes inside "tests/TestCase.php" which does not appea
r to be a file nor a folder

did where the problems is?
Yes, you need to copy the tests folder from the github as well.
@LukeTowers OK
Most helpful comment
@ulaskorpe Use plugins for that. Themes are not meant for complicated PHP functionality, that is meant to be contained with plugins and their components.
As a side note, take a read through https://luketowers.ca/blog/how-to-use-laravel-packages-in-october-cms-plugins/ to see the full process of using Laravel Packages in October plugins.