{"id":15524543,"url":"https://github.com/sergeyklay/php-appveyor","last_synced_at":"2025-04-11T03:02:22.512Z","repository":{"id":34008881,"uuid":"165442022","full_name":"sergeyklay/php-appveyor","owner":"sergeyklay","description":"Install PHP on AppVeyor CI ","archived":false,"fork":false,"pushed_at":"2022-01-29T15:16:58.000Z","size":71,"stargazers_count":1,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T00:42:41.169Z","etag":null,"topics":["appveyor","appveyor-scripts","ci","php","php-installation","php-tools","powershell-module","windows-php"],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","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/sergeyklay.png","metadata":{"files":{"readme":"README.md","changelog":null,"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-01-12T22:26:41.000Z","updated_at":"2023-04-08T10:25:26.000Z","dependencies_parsed_at":"2022-08-07T23:31:20.888Z","dependency_job_id":null,"html_url":"https://github.com/sergeyklay/php-appveyor","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeyklay%2Fphp-appveyor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeyklay%2Fphp-appveyor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeyklay%2Fphp-appveyor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeyklay%2Fphp-appveyor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sergeyklay","download_url":"https://codeload.github.com/sergeyklay/php-appveyor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248333605,"owners_count":21086199,"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","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":["appveyor","appveyor-scripts","ci","php","php-installation","php-tools","powershell-module","windows-php"],"created_at":"2024-10-02T10:51:39.388Z","updated_at":"2025-04-11T03:02:22.482Z","avatar_url":"https://github.com/sergeyklay.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `php-appveyor.psm1`\n\nInstall PHP and its tooling on AppVeyor CI.\n\n`php-appveyor.psm1` is a small PowerShell script which provides functions to\ninstall stable PHP versions, PHP DevPack, PHP SDK binary tools and doing some\nusual provision tasks on the AppVeyor CI.\n\n## Usage\n\nAdd the following to your `.appveyor.yml` file:\n\n``` yaml\nenvironment:\n  # Use this matrix as an example\n  matrix:\n\n    # Specify matrix item for your app\n    - PHP_VERSION: 7.3\n      VC_VERSION: 15\n      BUILD_TYPE: nts-Win32\n      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015\n\n  # Specify required PHP SDK binary tools if you need SDK\n  PHP_SDK_VERSION: 2.1.9\n\n  PHP_AVM: https://raw.githubusercontent.com/sergeyklay/php-appveyor/master/php-appveyor.psm1\n\n# Cache PHP and tooling\ncache:\n  # The C:\\Downloads directory will be used as a storage for downloaded archives.\n  # So you may want to cache it.\n  - 'C:\\Downloads -\u003e .appveyor.yml'\n\n# Specify required architecture.\n# Supported architectures are ``x86`` and ``x64``\nplatform:\n  - x64\n\ninstall:\n  # Download php-appveyor.psm1 module and invoke it to the current session\n  - ps: (new-object Net.WebClient).DownloadString($Env:PHP_AVM) | iex\n\n  - ps: InstallPhpSdk     $Env:PHP_SDK_VERSION $Env:VC_VERSION $Env:PLATFORM\n  - ps: InstallPhp        $Env:PHP_VERSION $Env:BUILD_TYPE $Env:VC_VERSION $Env:PLATFORM\n  - ps: InstallPhpDevPack $Env:PHP_VERSION $Env:BUILD_TYPE $Env:VC_VERSION $Env:PLATFORM\n\n  # An example to install PECL extension\n  - ps: \u003e-\n      InstallPeclExtension `\n        -Name       psr `\n        -Version    0.6.1 `\n        -PhpVersion $Env:PHP_VERSION `\n        -BuildType  $Env:BUILD_TYPE `\n        -VC         $Env:VC_VERSION `\n        -Platform   $Env:PLATFORM\n\n  # An example to enable PHP extension\n  - ps: \u003e-\n      EnablePhpExtension `\n        -Name          my_ext `\n        -PhpPath       C:\\php `       # Optional\n        -ExtPath       C:\\my_ext `    # Optional\n        -PrintableName \"My Extension\" # Optional\n\nbuild_script:\n  # Your code here\n```\n\nFor more completely example see `.appveyor.yml` in this project.\n\n## Real world projects with `php-appveyor.psm1`\n\n- [Phalcon Framework][1] - High performance, full-stack PHP framework delivered\n  as a C extension\n- [PHP Zephir Parser][2] - The Zephir Parser delivered as a C extension for the\n  PHP language\n\n# License\n\n`php-appveyor.psm1` is open source software licensed under the MIT License (MIT).\nSee the [LICENSE][3] file for more information.\n\n[1]: https://github.com/phalcon/cphalcon\n[2]: https://github.com/phalcon/php-zephir-parser\n[3]: https://github.com/sergeyklay/php-appveyor/blob/master/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergeyklay%2Fphp-appveyor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsergeyklay%2Fphp-appveyor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergeyklay%2Fphp-appveyor/lists"}