-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall-strip.bat
More file actions
43 lines (41 loc) · 1.29 KB
/
Copy pathinstall-strip.bat
File metadata and controls
43 lines (41 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
@echo off
echo ===================================
echo Stripe PHP SDK Installation
echo ===================================
echo.
REM Check if composer is installed
where composer >nul 2>nul
if %errorlevel% equ 0 (
echo Composer found! Installing Stripe PHP SDK...
echo.
composer require stripe/stripe-php
echo.
echo Installation complete!
echo.
) else (
echo Composer not found. Trying XAMPP's PHP Composer...
echo.
if exist "C:\xampp\php\php.exe" (
cd /d "%~dp0"
C:\xampp\php\php.exe -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
C:\xampp\php\php.exe composer-setup.php
C:\xampp\php\php.exe -r "unlink('composer-setup.php');"
C:\xampp\php\php.exe composer.phar require stripe/stripe-php
echo.
echo Installation complete!
) else (
echo.
echo ERROR: Composer not found and XAMPP PHP not detected.
echo.
echo Please install Composer first:
echo 1. Download from: https://getcomposer.org/Composer-Setup.exe
echo 2. Run the installer
echo 3. Restart this script
echo.
echo OR manually download Stripe PHP from:
echo https://github.com/stripe/stripe-php/releases
)
)
echo.
echo Press any key to exit...
pause >nul