├── .php_cs.dist.php ├── CHANGELOG.md ├── LICENSE.md ├── README.md ├── UPGRADE.md ├── composer.json ├── phpstan-baseline.neon ├── phpstan.neon.dist └── src ├── Actions ├── FormatTypeScriptAction.php ├── PersistTypesCollectionAction.php ├── ReplaceSymbolsInCollectionAction.php ├── ReplaceSymbolsInTypeAction.php ├── ResolveClassesInPhpFileAction.php ├── ResolveTypesCollectionAction.php └── TranspileTypeToTypeScriptAction.php ├── Attributes ├── Hidden.php ├── InlineTypeScriptType.php ├── LiteralTypeScriptType.php ├── Optional.php ├── RecordTypeScriptType.php ├── TypeScript.php ├── TypeScriptTransformableAttribute.php ├── TypeScriptTransformer.php └── TypeScriptType.php ├── ClassReader.php ├── Collectors ├── Collector.php ├── DefaultCollector.php └── EnumCollector.php ├── Exceptions ├── CircularDependencyChain.php ├── InvalidDefaultTypeReplacer.php ├── InvalidTransformerGiven.php ├── NoAutoDiscoverTypesPathsDefined.php ├── SymbolAlreadyExists.php ├── TransformerNotFound.php └── UnableToTransformUsingAttribute.php ├── Formatters ├── EslintFormatter.php ├── Formatter.php └── PrettierFormatter.php ├── Structures ├── MissingSymbolsCollection.php ├── TransformedType.php └── TypesCollection.php ├── Transformers ├── DtoTransformer.php ├── EnumTransformer.php ├── InterfaceTransformer.php ├── MyclabsEnumTransformer.php ├── SpatieEnumTransformer.php ├── Transformer.php └── TransformsTypes.php ├── TypeProcessors ├── DtoCollectionTypeProcessor.php ├── ProcessesTypes.php ├── ReplaceDefaultsTypeProcessor.php └── TypeProcessor.php ├── TypeReflectors ├── ClassTypeReflector.php ├── MethodParameterTypeReflector.php ├── MethodReturnTypeReflector.php ├── PropertyTypeReflector.php └── TypeReflector.php ├── TypeScriptTransformer.php ├── TypeScriptTransformerConfig.php ├── Types ├── RecordType.php ├── StructType.php └── TypeScriptType.php └── Writers ├── ModuleWriter.php ├── TypeDefinitionWriter.php └── Writer.php /.php_cs.dist.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/.php_cs.dist.php -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/README.md -------------------------------------------------------------------------------- /UPGRADE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/UPGRADE.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/composer.json -------------------------------------------------------------------------------- /phpstan-baseline.neon: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/phpstan-baseline.neon -------------------------------------------------------------------------------- /phpstan.neon.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/phpstan.neon.dist -------------------------------------------------------------------------------- /src/Actions/FormatTypeScriptAction.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Actions/FormatTypeScriptAction.php -------------------------------------------------------------------------------- /src/Actions/PersistTypesCollectionAction.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Actions/PersistTypesCollectionAction.php -------------------------------------------------------------------------------- /src/Actions/ReplaceSymbolsInCollectionAction.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Actions/ReplaceSymbolsInCollectionAction.php -------------------------------------------------------------------------------- /src/Actions/ReplaceSymbolsInTypeAction.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Actions/ReplaceSymbolsInTypeAction.php -------------------------------------------------------------------------------- /src/Actions/ResolveClassesInPhpFileAction.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Actions/ResolveClassesInPhpFileAction.php -------------------------------------------------------------------------------- /src/Actions/ResolveTypesCollectionAction.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Actions/ResolveTypesCollectionAction.php -------------------------------------------------------------------------------- /src/Actions/TranspileTypeToTypeScriptAction.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Actions/TranspileTypeToTypeScriptAction.php -------------------------------------------------------------------------------- /src/Attributes/Hidden.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Attributes/Hidden.php -------------------------------------------------------------------------------- /src/Attributes/InlineTypeScriptType.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Attributes/InlineTypeScriptType.php -------------------------------------------------------------------------------- /src/Attributes/LiteralTypeScriptType.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Attributes/LiteralTypeScriptType.php -------------------------------------------------------------------------------- /src/Attributes/Optional.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Attributes/Optional.php -------------------------------------------------------------------------------- /src/Attributes/RecordTypeScriptType.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Attributes/RecordTypeScriptType.php -------------------------------------------------------------------------------- /src/Attributes/TypeScript.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Attributes/TypeScript.php -------------------------------------------------------------------------------- /src/Attributes/TypeScriptTransformableAttribute.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Attributes/TypeScriptTransformableAttribute.php -------------------------------------------------------------------------------- /src/Attributes/TypeScriptTransformer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Attributes/TypeScriptTransformer.php -------------------------------------------------------------------------------- /src/Attributes/TypeScriptType.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Attributes/TypeScriptType.php -------------------------------------------------------------------------------- /src/ClassReader.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/ClassReader.php -------------------------------------------------------------------------------- /src/Collectors/Collector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Collectors/Collector.php -------------------------------------------------------------------------------- /src/Collectors/DefaultCollector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Collectors/DefaultCollector.php -------------------------------------------------------------------------------- /src/Collectors/EnumCollector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Collectors/EnumCollector.php -------------------------------------------------------------------------------- /src/Exceptions/CircularDependencyChain.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Exceptions/CircularDependencyChain.php -------------------------------------------------------------------------------- /src/Exceptions/InvalidDefaultTypeReplacer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Exceptions/InvalidDefaultTypeReplacer.php -------------------------------------------------------------------------------- /src/Exceptions/InvalidTransformerGiven.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Exceptions/InvalidTransformerGiven.php -------------------------------------------------------------------------------- /src/Exceptions/NoAutoDiscoverTypesPathsDefined.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Exceptions/NoAutoDiscoverTypesPathsDefined.php -------------------------------------------------------------------------------- /src/Exceptions/SymbolAlreadyExists.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Exceptions/SymbolAlreadyExists.php -------------------------------------------------------------------------------- /src/Exceptions/TransformerNotFound.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Exceptions/TransformerNotFound.php -------------------------------------------------------------------------------- /src/Exceptions/UnableToTransformUsingAttribute.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Exceptions/UnableToTransformUsingAttribute.php -------------------------------------------------------------------------------- /src/Formatters/EslintFormatter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Formatters/EslintFormatter.php -------------------------------------------------------------------------------- /src/Formatters/Formatter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Formatters/Formatter.php -------------------------------------------------------------------------------- /src/Formatters/PrettierFormatter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Formatters/PrettierFormatter.php -------------------------------------------------------------------------------- /src/Structures/MissingSymbolsCollection.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Structures/MissingSymbolsCollection.php -------------------------------------------------------------------------------- /src/Structures/TransformedType.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Structures/TransformedType.php -------------------------------------------------------------------------------- /src/Structures/TypesCollection.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Structures/TypesCollection.php -------------------------------------------------------------------------------- /src/Transformers/DtoTransformer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Transformers/DtoTransformer.php -------------------------------------------------------------------------------- /src/Transformers/EnumTransformer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Transformers/EnumTransformer.php -------------------------------------------------------------------------------- /src/Transformers/InterfaceTransformer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Transformers/InterfaceTransformer.php -------------------------------------------------------------------------------- /src/Transformers/MyclabsEnumTransformer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Transformers/MyclabsEnumTransformer.php -------------------------------------------------------------------------------- /src/Transformers/SpatieEnumTransformer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Transformers/SpatieEnumTransformer.php -------------------------------------------------------------------------------- /src/Transformers/Transformer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Transformers/Transformer.php -------------------------------------------------------------------------------- /src/Transformers/TransformsTypes.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Transformers/TransformsTypes.php -------------------------------------------------------------------------------- /src/TypeProcessors/DtoCollectionTypeProcessor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/TypeProcessors/DtoCollectionTypeProcessor.php -------------------------------------------------------------------------------- /src/TypeProcessors/ProcessesTypes.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/TypeProcessors/ProcessesTypes.php -------------------------------------------------------------------------------- /src/TypeProcessors/ReplaceDefaultsTypeProcessor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/TypeProcessors/ReplaceDefaultsTypeProcessor.php -------------------------------------------------------------------------------- /src/TypeProcessors/TypeProcessor.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/TypeProcessors/TypeProcessor.php -------------------------------------------------------------------------------- /src/TypeReflectors/ClassTypeReflector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/TypeReflectors/ClassTypeReflector.php -------------------------------------------------------------------------------- /src/TypeReflectors/MethodParameterTypeReflector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/TypeReflectors/MethodParameterTypeReflector.php -------------------------------------------------------------------------------- /src/TypeReflectors/MethodReturnTypeReflector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/TypeReflectors/MethodReturnTypeReflector.php -------------------------------------------------------------------------------- /src/TypeReflectors/PropertyTypeReflector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/TypeReflectors/PropertyTypeReflector.php -------------------------------------------------------------------------------- /src/TypeReflectors/TypeReflector.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/TypeReflectors/TypeReflector.php -------------------------------------------------------------------------------- /src/TypeScriptTransformer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/TypeScriptTransformer.php -------------------------------------------------------------------------------- /src/TypeScriptTransformerConfig.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/TypeScriptTransformerConfig.php -------------------------------------------------------------------------------- /src/Types/RecordType.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Types/RecordType.php -------------------------------------------------------------------------------- /src/Types/StructType.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Types/StructType.php -------------------------------------------------------------------------------- /src/Types/TypeScriptType.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Types/TypeScriptType.php -------------------------------------------------------------------------------- /src/Writers/ModuleWriter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Writers/ModuleWriter.php -------------------------------------------------------------------------------- /src/Writers/TypeDefinitionWriter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Writers/TypeDefinitionWriter.php -------------------------------------------------------------------------------- /src/Writers/Writer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spatie/typescript-transformer/HEAD/src/Writers/Writer.php --------------------------------------------------------------------------------