# New PHP Convenience Image Public Beta

**URL:** <https://discuss.circleci.com/t/new-php-convenience-image-public-beta/33514>\
**Category:** CircleCI Images\
**Tags:** docker, convenience-images, php\
**Created:** [November 25, 2019, 6:09pm UTC](https://discuss.circleci.com/t/new-php-convenience-image-public-beta/33514 "2019-11-25T18:09:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![FelicianoTech](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/felicianotech/32/21348_2.png) [@FelicianoTech](https://discuss.circleci.com/u/FelicianoTech)\
**Post date:** [November 25, 2019, 6:09pm UTC](https://discuss.circleci.com/t/new-php-convenience-image-public-beta/33514/1 "2019-11-25T18:09:03Z")

</div>

Hey Everyone,

For those who don’t know, we at CircleCI maintain a fleet of Docker images, which we call Convenience Images, for various languages and databases. These images are designed to run your CI environment.

The Docker build system we are using is old and complicated so we’ve been designing a new suite of images. This of course includes a new PHP image.

If you’re already using CircleCI to build/test/deploy your PHP project (or want to), I would love it if you could try out our new image. The image is `cimg/php` with the tag being a PHP version such as `7.3` or `7.3.11`.

It’s all open source so you can find the GitHub repo [here](https://github.com/CircleCI-Public/cimg-php) and the Docker Hub repo [here](https://hub.docker.com/r/cimg/php).

We’re looking to:

1. Provide a PHP Docker image useful for CI.
2. Get feedback on if this image is working for your project or if it’s missing something or doing something “wrong” in your opinion.
3. Get feedback on how this image is working for you if you’re coming from our legacy image, `circleci/php`.

## Other Public Beta Images

You can view all of the Next-Gen images that have reached public beta [here](https://discuss.circleci.com/t/next-gen-circleci-convenience-images-public-beta/33010).

Any questions, please let me know, thanks!

---

<div class="post-metadata">

**Author:** ![FelicianoTech](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/felicianotech/32/21348_2.png) [@FelicianoTech](https://discuss.circleci.com/u/FelicianoTech)\
**Post date:** [March 24, 2020, 2:26am UTC](https://discuss.circleci.com/t/new-php-convenience-image-public-beta/33514/2 "2020-03-24T02:26:01Z")

</div>

A Node.js variant for this image has been enabled:

```auto
- image: cimg/php:<version>-node

```

---

<div class="post-metadata">

**Author:** ![nickc](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/nickc/32/24761_2.png) [@nickc](https://discuss.circleci.com/u/nickc)\
**Post date:** [April 27, 2020, 10:08am UTC](https://discuss.circleci.com/t/new-php-convenience-image-public-beta/33514/3 "2020-04-27T10:08:52Z")

</div>

Thanks for these images!

Just a heads up that the `cimg/php:7.3-node` and `cimg/php:7.2-node` images appear to be missing the PHP DOM extension.

I see a “Class ‘DOMDocument’ not found” message when running `composer test` (which runs `vendor/bin/phpunit`).

The `cimg/php:7.4-node` image isn’t affected by the same issue — it appears to have the necessary DOM extension.

```auto
Cannot create cache directory /home/circleci/.composer/cache/repo/https---repo.packagist.org/, or directory is not writable. Proceeding without cache
 
Cannot create cache directory /home/circleci/.composer/cache/files/, or directory is not writable. Proceeding without cache
 
> vendor/bin/phpunit --testdox
 
Class 'DOMDocument' not found
 
Script vendor/bin/phpunit --testdox handling the test event returned with error code 1

```

---

<div class="post-metadata">

**Author:** ![FelicianoTech](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/felicianotech/32/21348_2.png) [@FelicianoTech](https://discuss.circleci.com/u/FelicianoTech)\
**Post date:** [November 2, 2020, 5:54pm UTC](https://discuss.circleci.com/t/new-php-convenience-image-public-beta/33514/4 "2020-11-02T17:54:23Z")

</div>

Was this resolved?

---

<div class="post-metadata">

**Author:** ![FelicianoTech](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/felicianotech/32/21348_2.png) [@FelicianoTech](https://discuss.circleci.com/u/FelicianoTech)\
**Post date:** [November 2, 2020, 9:46pm UTC](https://discuss.circleci.com/t/new-php-convenience-image-public-beta/33514/5 "2020-11-02T21:46:33Z")

</div>

This next-gen Convenience Image is now considered stable! 🎉

Reminder:

- Developer Hub URL: [https://circleci.com/developer/images/image/cimg/php](https://circleci.com/developer/images/image/cimg/php)
- GitHub URL: [https://github.com/CircleCI-Public/cimg-php](https://github.com/CircleCI-Public/cimg-php)
- Docker Hub URL: [https://hub.docker.com/r/cimg/php](https://hub.docker.com/r/cimg/php)
- example usage:

```yaml
docker:
  - image: cimg/php:7.4.12

```
