John Davidson

php - Custom attributes in composer.json

0 comments
Message:


Is possible to add/create custom attributes on composer.json?


Like this:


(...)
"require": {
"php": ">=7.4"
},
'custom': {
"username": "RahPT",
"foo": "bar"
},
(...)


My Answer:
No, it is not possible to add custom attributes to the composer.json file. The composer.json file follows a specific schema defined by Composer, and any custom attributes would not be recognized or used by Composer. If you need to store additional information, you can consider using a separate configuration file or a different approach to manage your custom attributes.

Rate this post

3 of 5 based on 3085 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us