rindow / rindow-neuralnetworks

Neural networks library for machine learning on PHP
https://rindow.github.io/neuralnetworks
BSD 3-Clause "New" or "Revised" License
78 stars 10 forks source link

Installer without Composer #6

Open sysmaya opened 9 months ago

sysmaya commented 9 months ago

There are still people who do not use composer, or whose shared hosting service does not allow shell commands. It would be nice to be able to download the project as a folder ready to upload to the server. Your project is the most complete and the only one that implements a translator (wow!!!). I have looked at the competition, Ruby, PHP-ML, etc. And this is definitely the most complete project. Ah beautiful times when include_once() worked!!

yuichiis commented 9 months ago

Thank you for finding this project.

As you said, it is not possible to directly execute composer commands on the web server.

Generally, if you transfer the project directory created using composer on your PC to the server, it will run on the hosting service's web server. There is no need to use composer commands on the web server. This is common to all composer applications, not just rindow.

The composer command will download all the files under the "vendor" directory, and if you upload them all, the tapped application will work fine.

You can easily call the libraries and tools you have set up by simply writing the following at the top of your application.

require __DIR__.'/vendor/autoload.php';

We have tested it by actually running it on a shared web hosting service.

Thank you for praising Rindow-Neuralnetwork. This library can be used for many models compared to other PHP AI projects.

I hope it's helpful to you.