| Server IP : 188.114.96.4 / Your IP : 104.23.243.201 Web Server : Apache/2.4.59 (Debian) System : Linux EDL-STRETCH 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64 User : edlftp ( 1002) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/nicolasj/www/sms.formationlangues.be/vendor/stripe/stripe-php/ |
Upload File : |
set quiet
import? '../sdk-codegen/utils.just'
# make vendored executables callable directly
export PATH := "vendor/bin:" + env_var('PATH')
_default:
just --list --unsorted
# install vendored dependencies
install *args:
composer install {{ if is_dependency() == "true" {"--quiet"} else {""} }} {{ args }}
# ⭐ run full unit test suite; needs stripe-mock
[no-exit-message]
test *args: install
phpunit {{ args }}
# run tests in CI; can use autoload mode (or not)
[confirm("This will modify local files and is intended for use in CI; do you want to proceed?")]
ci-test autoload:
./build.php {{ autoload }}
# ⭐ format all files
format *args: install
PHP_CS_FIXER_IGNORE_ENV=1 php-cs-fixer fix -v --using-cache=no {{ args }}
# check formatting for, but don't modify, files
format-check: (format "--dry-run")
# ⭐ statically analyze code
lint *args:
php -d memory_limit=512M vendor/bin/phpstan analyse lib tests {{args}}
# for backwards compatibility; ideally removed later
[private]
alias phpstan := lint
# called by tooling
[private]
update-version version:
echo "{{ version }}" > VERSION
perl -pi -e 's|VERSION = '\''[.\-\w\d]+'\''|VERSION = '\''{{ version }}'\''|' lib/Stripe.php
PHPDOCUMENTOR_VERSION := "v3.0.0"
# generates docs; currently broken? can unhide if working
[private]
phpdoc:
#!/usr/bin/env bash
set -euo pipefail
if [ ! -f vendor/bin/phpdoc ]; then
curl -sfL https://github.com/phpDocumentor/phpDocumentor/releases/download/{{ PHPDOCUMENTOR_VERSION }}/phpDocumentor.phar -o vendor/bin/phpdoc
chmod +x vendor/bin/phpdoc
fi
phpdoc