Skip to content

Conversation

@eko
Copy link

@eko eko commented Oct 16, 2025

I have to generate protos that will be used by a PHP project.

This pull request adds a new entproto.PhpNamespace() option that can be added to messages this way:

func (MessageWithPhpNamespace) Annotations() []schema.Annotation {
	return []schema.Annotation{
		entproto.Message(
			entproto.PackageName("io.entgo.apps.todo"),
			entproto.PhpNamespace("My\\Company\\Todo"),
		),
	}
}

@eko eko force-pushed the added-php-namespace branch from 67783dd to a413653 Compare October 16, 2025 16:39
@eko eko force-pushed the added-php-namespace branch from a413653 to f309ff9 Compare October 16, 2025 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant