XAMPP Installation with Snipe-IT v3.3.0
I try for a few weeks to install snipe-it with no success.
Made a clean Server 2012 R2 server
I follow this ticket/steps: https://github.com/snipe/snipe-it/issues/2421
i install composer install command on snipe-it folder next is made C:\xampp\htdocs\snipe-it>php artisan key:generate
was success generate
I get stuck on composer.
If i enter composer command i still get message file is not found.
What im doing wrong?

If i go to the url i dont get the Snipe-IT Pre-Flight
Still get Whoops, looks like something went wrong. on the start page
- I'd suggest reading the messages that appear after running a command, they usually give you a good idea of what is going on.
"Could not open input file: composer.phar" "Unknown database 'snipe-it'"
If you fix these, things will be much more likely to work.
The problem is why i get the error "Could not open input file: composer.phar"
I run composer install with success.
Afther that step i could create artisan key
Only if i run the command
php composer.phar install --no-dev --prefer-source
i get the error. Don't know why.
"Unknown database 'snipe-it'" also strange because 100% sure i created.
If i look composer.phar on the pc 0 results, if run composer install it's with succes and composer is up to date. My questions is why or what i need to do to solved it? It cant find it.
it sounds like composer is installed globally for you, and not locally (in the snipe directory.) composer install does the same thing as php composer.phar install, depending on where you installed composer.
Thanks for the tip. Files are standing in the app data folder from the user. I copy them to the vendor folder form snipe-it
Also i had need to run these commands
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
Finaly i get the install page
