# PHP 8.1: readonly properties

DevFeed: [PHP 8.1: readonly properties](<https://devfeed.tech/articles/php-8-1-readonly-properties-44209.md>)

Original publisher: [Read original article](<https://stitcher.io/blog/php-81-readonly-properties>)

Author: Brent

Published: 2021-09-11T00:00:00Z

Content type: tutorial

Language: en

Sources: [Stitcher](<https://devfeed.tech/sources/stitcher-io.md>)

Topics: [PHP](<https://devfeed.tech/topics/php.md>), [properties](<https://devfeed.tech/topics/properties.md>), [class](<https://devfeed.tech/topics/class.md>), [constructor](<https://devfeed.tech/topics/constructor.md>), [object](<https://devfeed.tech/topics/object.md>)

Tags: [classes](<https://devfeed.tech/tags/classes.md>), [code](<https://devfeed.tech/tags/code.md>), [constructor](<https://devfeed.tech/tags/constructor.md>), [object](<https://devfeed.tech/tags/object.md>), [php](<https://devfeed.tech/tags/php.md>), [php-8-1](<https://devfeed.tech/tags/php-8-1.md>), [properties](<https://devfeed.tech/tags/properties.md>)

## AI overview

This tutorial explains PHP 8.1 readonly properties, including their purpose, restrictions, use with typed and promoted properties, and implications for data transfer and value objects.

## Source excerpt

Read the full post on https://stitcher.io/blog/php-81-readonly-properties