Vendor composer.phar so install works on a fresh clone

- Un-ignore composer.phar (keep vendor/ and SQLite gitignored)
- Document install/bootstrap in README
This commit is contained in:
Harwinder Sekhon
2026-10-05 17:19:30 -04:00
parent 60bcf22692
commit 403fd2c604
3 changed files with 14 additions and 4 deletions
-1
View File
@@ -1,6 +1,5 @@
/vendor/ /vendor/
/data/ /data/
/composer.phar
composer-setup.php composer-setup.php
*.sqlite *.sqlite
*.sqlite-shm *.sqlite-shm
+14 -3
View File
@@ -59,12 +59,23 @@ cd RSS-Feed
### 2. Install dependencies ### 2. Install dependencies
`composer.phar` is committed with the repo, so no global Composer is required:
```bash ```bash
php composer.phar install php composer.phar install --no-dev --optimize-autoloader
``` ```
This populates `vendor/`. If Composer is installed globally, `composer install` This populates `vendor/` (both `vendor/` and the SQLite DB are gitignored, so they
works the same. (`vendor/` and the SQLite DB are gitignored.) are created here). A system Composer works the same:
`composer install --no-dev --optimize-autoloader`.
If `composer.phar` is ever missing, fetch it once:
```bash
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php --install-dir=. --filename=composer.phar
rm composer-setup.php
```
### 3. Configure ### 3. Configure
Executable
BIN
View File
Binary file not shown.