# Clone your forkgit clone https://github.com/YOUR_USERNAME/custom-fields.gitcd custom-fields# Install dependenciescomposer installnpm install# Set up testing environmentcp phpunit.xml.dist phpunit.xml# Run tests to verify setupcomposer test
Want to add a new field type? Great! Make sure to:
Implement the FieldTypeDefinitionInterface
Add form, table, and infolist components
Include validation rules
Add comprehensive tests
Update documentation
Example structure:
Copy
namespace Relaticle\CustomFields\FieldTypes;class PhoneFieldType implements FieldTypeDefinitionInterface{ public function getFormComponent(CustomField $field): Field { // Implementation } public function getTableColumn(CustomField $field): Column { // Implementation } // ... other required methods}