setup-php | GitHub action to set up PHP with extensions , php.ini | Continous Integration library

 by   shivammathur TypeScript Version: 2.30.2 License: MIT

kandi X-RAY | setup-php Summary

kandi X-RAY | setup-php Summary

setup-php is a TypeScript library typically used in Devops, Continous Integration, Composer applications. setup-php has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

Setup PHP with required extensions, php.ini configuration, code-coverage support and various tools like composer in GitHub Actions. This action gives you a cross-platform interface to set up the PHP environment you need to test your application. Refer to Usage section and examples to see how to use this.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              setup-php has a medium active ecosystem.
              It has 2515 star(s) with 312 fork(s). There are 28 watchers for this library.
              There were 7 major release(s) in the last 6 months.
              There are 1 open issues and 458 have been closed. On average issues are closed in 16 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of setup-php is 2.30.2

            kandi-Quality Quality

              setup-php has no bugs reported.

            kandi-Security Security

              setup-php has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              setup-php is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              setup-php releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of setup-php
            Get all kandi verified functions for this library.

            setup-php Key Features

            No Key Features are available at this moment for setup-php.

            setup-php Examples and Code Snippets

            No Code Snippets are available at this moment for setup-php.

            Community Discussions

            QUESTION

            How to force a symfony version on github actions when testing a bundle
            Asked 2021-Jun-13 at 16:21

            I'm trying to test a bundle on different versions of Symfony with github actions. I tried to configure my job as explained in Best practices for reusable bundles

            Here is my job:

            ...

            ANSWER

            Answered 2021-Jun-13 at 16:21

            It seems that export command isn't environment-proof.

            Finally, I removed these lines:

            Source https://stackoverflow.com/questions/67959657

            QUESTION

            How do I get php ini-value in github actions to point towards a file in my project directory
            Asked 2020-Dec-01 at 05:46

            Here's my .yml file for github actions. How do I correctly add the ini-values parameter to point to a directory in my project? My project structure is InstaGetSymfony/src = symfony MVC dir.

            I want my curl.cainfo ini value to point towards InstaGetSymfony/ca/cacert.pem

            ...

            ANSWER

            Answered 2020-Dec-01 at 05:46

            You can get the directory in a previous step and use that.

            Source https://stackoverflow.com/questions/64959920

            QUESTION

            How to stop Github Actions step when functional tests failed (using Codeception)
            Asked 2020-Jun-10 at 15:28

            I'm new with Github Actions and I try to make some continuous integration with functional tests.

            I use Codeception and my workflow run perfectly, but when some tests fail the step is written as success. Github don't stop the action and continue to run the nexts steps.

            Here is my workflow yml file :

            ...

            ANSWER

            Answered 2020-Jun-10 at 15:28

            Probably codeception:functional set an exit code = 0 even though an error occured. docker exec passes the exit code of the process through. GitHub Actions fails the step if a command returns with an exit code != 0.

            Source https://stackoverflow.com/questions/62303997

            QUESTION

            How to only push out JSON for a unique row in a table?
            Asked 2018-May-12 at 11:55

            My table is setup like this "SenderID", "RecieverID" and "Message". In other words there is a lot of messages in there but i've setup my code to only get the ID's that is connected to the ID i am sending in. I do this with a rest-api call looking like this:

            ...

            ANSWER

            Answered 2018-May-12 at 11:55

            ORs in WHERE clauses can sometimes generate duplicates, and your table can possibly contain duplicates. Your query should remove them. Try this

            Source https://stackoverflow.com/questions/50305054

            QUESTION

            GoDaddy Windows Plex PHP error_log not working right
            Asked 2018-Mar-31 at 13:56

            I'm having an issue where I get an "Internal Server Error" on my php page. To try and debug it, I attempted to use the error_log function in php. However I could not get it to write anything to the error log. Even in a simple php file:

            httpdocs/temp.php

            ...

            ANSWER

            Answered 2018-Mar-31 at 13:56

            PHP needed file read write permisions

            Source https://stackoverflow.com/questions/48654232

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install setup-php

            Setup PHP with required extensions, php.ini configuration, code-coverage support and various tools like composer in GitHub Actions. This action gives you a cross-platform interface to set up the PHP environment you need to test your application. Refer to Usage section and examples to see how to use this.
            Set up a particular PHP version.
            Set up multiple PHP versions on multiple operating systems.
            Set up a nightly build of PHP 8.2.
            This PHP version is currently in active development and might contain bugs and breaking changes.
            Some user space extensions might not support this version currently.
            Set up TS or NTS PHP on Windows.
            NTS versions are set up by default.
            On Ubuntu and macOS only NTS versions are supported.
            On Windows both TS and NTS versions are supported.
            Update to the latest patch of PHP versions.
            Pre-installed PHP versions are not updated to their latest patch release by default.
            You can specify the update environment variable to true for updating to the latest release.
            To debug any issues, you can use the verbose tag instead of v2.
            Set up PHP on multiple architecture on Ubuntu GitHub Runners.
            PHP 5.6 to PHP 8.1 are supported by setup-php on multiple architecture on Ubuntu.
            For this, you can use shivammathur/node images as containers. These have compatible Nodejs installed for setup-php.
            Currently, for ARM based setup, you will need self-hosted runners.
            Set up PHP on a self-hosted runner. It is recommended to specify the environment variable runner with the value self-hosted for self-hosted environments.
            To set up a containerised self-hosted runner, refer to the following guides as per your base operating system. Linux Windows
            To set up the runner directly on the host OS or in a virtual machine, follow this requirements guide before setting up the self-hosted runner.
            If your workflow uses service containers, then set up the runner on a Linux host or in a Linux virtual machine. GitHub Actions does not support nested virtualization on Linux, so services will not work in a dockerized container.
            Do not set up multiple self-hosted runners on a single server instance as parallel workflow will conflict with each other.
            Do not set up self-hosted runners on the side on your development environment or your production server.
            Avoid using the same labels for your self-hosted runners which are used by GitHub-hosted runners.
            Test your Ubuntu workflow locally using nektos/act. Run the workflow locally with act using shivammathur/node docker images. Choose the image tag which matches the runs-on property in your workflow. For example, if you are using ubuntu-20.04 in your workflow, run act -P ubuntu-20.04=shivammathur/node:20.04.

            Support

            Both GitHub-hosted and self-hosted runners are supported by setup-php on the following OS/Platforms.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • npm

            npm i setup-php

          • CLONE
          • HTTPS

            https://github.com/shivammathur/setup-php.git

          • CLI

            gh repo clone shivammathur/setup-php

          • sshUrl

            git@github.com:shivammathur/setup-php.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Continous Integration Libraries

            chinese-poetry

            by chinese-poetry

            act

            by nektos

            volkswagen

            by auchenberg

            phpdotenv

            by vlucas

            watchman

            by facebook

            Try Top Libraries by shivammathur

            homebrew-php

            by shivammathurRuby

            homebrew-extensions

            by shivammathurRuby

            countrycity

            by shivammathurPHP

            php-builder

            by shivammathurShell

            IPpy

            by shivammathurPython