(define-public php-composer (package (name "php-composer") (version "2.10.3") (home-page "https://getcomposer.org/") (source (origin (method url-fetch) (uri (string-append "https://getcomposer.org/download/" version "/composer.phar")) (sha256 (base32 "1mn82xgbqk9s8z8kv38p9gpzxlin9i4jdvw0hl1amzcgbffkfbbs")))) (build-system copy-build-system) (inputs (list php-8.4)) (arguments (list #:install-plan #~'("composer.phar" "bin/composer")) #:phases #~(modify-phases %standard-phases (add-before 'install 'patch-file (lambda* (#:key inputs #:allow-other-keys) (substitute* "composer.phar" (("composer\\.phar") "composer") (("\\/usr\\/bin\\/env php") (search-input-file inputs "/bin/php"))))) (add-after 'install 'exect (lambda* (#:key outputs #:allow-other-keys) (chmod (string-append #$ouptput "/bin/composer") #o555)))))) (synopsis "Dependency Manager for PHP") (description "Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.") (license license:expat))