cimg/php pulls statistics
By cimg (24 listings) · Docker Hub · Languages & frameworks
cimg/php has 51,096,314 recorded pulls on Docker Hub, ranking #62 of 1,265 tracked listings.
About cimg/php
This image is designed to supercede the legacy CircleCI PHP image, circleci/php.
cimg/php is a Docker image created by CircleCI with continuous integration builds in mind.
Each tag contains a complete PHP version and Composer, everything required for builds to complete successfully in a CircleCI environment.
Table of Contents
Getting Started
This image can be used with the CircleCI docker executor.
For example:
jobs:
build:
docker:
- image: cimg/php:7.4.26
steps:
- checkout
- run: php --version
In the above example, the CircleCI PHP Docker image is used for the primary container.
More specifically, the tag 7.4.26 is used meaning the version of PHP will be PHP v7.4.26.
You can now use PHP within the steps for this job.
How This Image Works
This image contains the PHP programming language as well as Composer and a few very popular PHP extensions.
PHP Extensions
This image contains PEAR, PECL, and Docker PHP Helper scripts These tools can be used to install various PHP extensions and utilities. For example, to install pcov, the following command can be run:
sudo pecl install pcov
Docker PHP Helper scripts help to install Core extensions that are bundled with PHP.
One way to add supported packages is through mlocati's extension installer:
sudo -E install-php-extensions xsl xdebug
# Occassionally, you'll will also need to enable an extension:
sudo docker-php-ext-enable xdebug
Alternatively,
sudo docker-php-source extract && \
# To include configuration options, the sudo docker-php-ext-configure command and --with- flag can be used
sudo docker-php-ext-install iconv && \
sudo -E docker-php-ext-enable iconv && \
docker-php-source delete
Older versions of this image suggested installing extensions via apt-get.
This is no longer the suggested route unless you are providing your own source of packages and know exactly what you are doing.
Composer v2
This image includes Composer v2 for tags built on November 2020 and after. For anyone who can't yet use this and needs to use Composer v1 instead, you can run the following at the beginning of your build:
- run: sudo composer self-update --1
Variants
Variant images typically contain the same base software, but with a few additional modifications.
Node.js
The Node.js variant is the same PHP image but with Node.js also installed.
The Node.js variant can be used by appending -node to the end of an existing cimg/php tag.
jobs:
build:
docker:
- image: cimg/php:7.4.26-node
steps:
- checkout
- run: php --version
- run: node --version
Browsers
The browsers variant is the same PHP image but with Node.js, Java, Selenium, and browser dependencies pre-installed via apt.
The browsers variant can be used by appending -browser to the end of an existing cimg/php tag.
The browsers variant is designed to work in conjunction with the CircleCI Browser Tools orb.
You can use the orb to install a version of Google Chrome and/or Firefox into your build. The image contains all of the supporting tools needed to use both the browser and its driver.
orbs:
browser-tools: circleci/browser-tools@1.1
jobs:
build:
docker:
- image: cimg/php:7.4.26-browsers
steps:
- browser-tools/install-browser-tools
- checkout
- run: |
php --version
node --version
java --version
google-chrome --version
Tagging Scheme
This image has the following tagging scheme:
cimg/php:<php-version>[-variant]
<php-version> - The version of PHP to use.
This can be a full SemVer point release (such as 7.4.25) or just the minor release (such as 7.4).
If you use the minor release tag, it will automatically point to future patch updates as they are released by the PHP Team.
For example, the tag 7.4 points to PHP v7.4.25 now, but when the next release comes out, it will point to PHP v7.4.26.
[-variant] - Variant tags, if available, can optionally be used.
For example, the Node.js variant could be used like this: cimg/php:7.4-node.
Development
Images can be built and run locally with this repository. This has the following requirements:…
Description from the Docker Hub listing.
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Pulls on a linear scale. Placement is projected from pulls, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (6)Similar Docker Hub Languages & frameworks plugins
All 20 cimg/php alternativesData source
Cumulative pull counts and stars come from the public Docker Hub API. Pulls count image downloads (including automated CI pulls), not installs or users.
Listing: https://hub.docker.com/r/cimg/php. First seen Oct 16, 2026; last successful collection Oct 21, 2026. See the methodology.