PHP Orb CircleCI Build Status CircleCI Orb Version GitHub License CircleCI Community

This orb is under active development and does not yet have a release. This orb cannot be used in a production/stable build yet.

A PHP Orb for CircleCI. This orb allows you to do common PHP related tasks on CircleCI such as install PHP, download Composer packages, caching, etc.

Usage

Example use as well as a list of available executors, commands, and jobs are available on this orb's registry page.

Complete

version: 2.1

orbs:
  php: circleci/php@y.x.z
jobs:
  #create a new job
  install-and-cache:
    description: "Install PHP, install composer, load cache and save cache"
    executor: <<parameters.executor>>
    parameters:
      version:
        description: "The PHP version."
        type: string
        default: "7.3"
      key:
        description: "The cache key to use. The key is immutable."
        type: string
        default: "composer"
    steps:
      - php/install:
          version: <<parameters.version>>
      - php/install-composer
      - php/load-cache:
          key: <<parameters.key>>
      - php/save-cache:
          key: <<parameters.key>>

workflows:
  simple_install_and_cache:
    jobs:
      - install-and-cache:
          #The PHP version, default to "7.3"
          version: "myPhpVersion"
          #The cache key to use. The key is immutable. default to "composer"
          key: "myCacheKey"

Resources

CircleCI Orb Registry Page - The official registry page for this orb with all versions, executors, commands, and jobs described.
CircleCI Orb Docs - Docs for using and creating CircleCI Orbs.

Contributing

We welcome issues to and pull requests against this repository! For further questions/comments about this or other orbs, visit the Orb Category of CircleCI Discuss.

Publishing

New versions of this orb are published by pushing a SemVer git tag by the Community & Partner Engineering Team.