{"id":15518863,"url":"https://github.com/gasol/php-makefile","last_synced_at":"2026-03-18T17:29:35.810Z","repository":{"id":62509204,"uuid":"219715189","full_name":"Gasol/php-makefile","owner":"Gasol","description":"Shared makefiles for PHP","archived":false,"fork":false,"pushed_at":"2019-11-15T09:56:41.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-29T10:48:24.785Z","etag":null,"topics":["composer-packages","makefile-template","makefiles","php-tools"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Gasol.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.adoc","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-05T10:12:35.000Z","updated_at":"2019-11-15T09:56:36.000Z","dependencies_parsed_at":"2022-11-02T13:00:33.147Z","dependency_job_id":null,"html_url":"https://github.com/Gasol/php-makefile","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Gasol/php-makefile","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gasol%2Fphp-makefile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gasol%2Fphp-makefile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gasol%2Fphp-makefile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gasol%2Fphp-makefile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gasol","download_url":"https://codeload.github.com/Gasol/php-makefile/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gasol%2Fphp-makefile/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273948111,"owners_count":25196393,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["composer-packages","makefile-template","makefiles","php-tools"],"created_at":"2024-10-02T10:19:27.162Z","updated_at":"2025-10-05T13:37:24.357Z","avatar_url":"https://github.com/Gasol.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Makefile\n\nA set of makefiles consists of useful rules for PHP development.\n\n[![asciicast](https://asciinema.org/a/MGbvJeArxMCHmDJfrR1n9XuJF.svg)](https://asciinema.org/a/MGbvJeArxMCHmDJfrR1n9XuJF)\n\n# Installation\n\nInstall as development package by using [Composer](https://getcomposer.org/)\n\n    composer require --dev gasolwu/php-makefile\n\nOr, append the following snippet into your composer.json and then run install manually by `composer install`\n\n    {\n        \"require-dev\": {\n            \"gasolwu/php-makefile\": \"^0.1\"\n        }\n    }\n\n# Getting Started\n\nThe minimum setup is to create your own Makefile and includes the PHP.mk.\n\n    cat \u003e Makefile \u003c\u003cEOF\n    include vendor/gasolwu/php-makefile/PHP.mk\n    EOF\n\t\n# Usage\n\n## Available targets\n\n### Basic\n- `make syntax` - Check syntax by PHP built-in linter\n- `make clean` - Remove build directory\n\n### With `USES=phpunit`\n\n- `make phpunit.xml` - Generate configuration file for PHPUnit with suggested settings\n- `make phpunit` - Run test with PHPUnit\n\n### With `USES=composer`\n\n- `make vendor` - Install dependencies by using Composer\n\n### With `USES=phpcs`\n\n- `make style` - Check coding style by PHP_CodeSniffer\n\n## Hints\n\nThere are two approches to run test by default, So you can run test by running `make` instead of `make phpunit`\n\n1. Define `.DEFAULT_GOAL`\n\n        .DEFAULT_GOAL := phpunit\n\n2. Declare `all` target that depends on `phpunit`\n\n        all: phpunit\n\n\n# Configuration\n\nThose variables should work well for most PHP libraries by default, If it doesn't, Feel free to apply changes that applicable to you.\n\n* `USES` - Possible values are\n\t* `composer` \n\t* `phpunit`\n\t* `phpcs`\n*   `BUILD_DIR` - Build directory that contains all generated files during the build phase are placed here. Should be listed in VCS  ignore file. Default to `build`.\n*   `PHP_SRCDIR` - Source directory, Default to `src`.\n*   `PHP_TESTDIR` - Tests directory, Default to `tests`.\n\n# License\n\n[MIT](https://gasolwu.mit-license.org/) - Copyright © 2019 Gasol Wu\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgasol%2Fphp-makefile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgasol%2Fphp-makefile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgasol%2Fphp-makefile/lists"}