PHPackages                             dking3876/php-to-typescript - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. dking3876/php-to-typescript

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

dking3876/php-to-typescript
===========================

Convert your PHP classes to Typescript

1.0.2(7y ago)27453MITPHPPHP &gt;=7.0

Since Aug 30Pushed 7y ago2 watchersCompare

[ Source](https://github.com/dking3876/PhpToTypescript)[ Packagist](https://packagist.org/packages/dking3876/php-to-typescript)[ RSS](/packages/dking3876-php-to-typescript/feed)WikiDiscussions develop Synced 6d ago

READMEChangelog (3)Dependencies (2)Versions (5)Used By (0)

Php To Typescript
=================

[](#php-to-typescript)

This package will convert your php classes into abstract class in typescript. All classes will be appended by an underscore(\_) and should be extended in a concrete class.

### Author

[](#author)

Deryk William King

### Requirements

[](#requirements)

- Php 7.x
- Composer

### Installation

[](#installation)

Install the PhpToTypescript package `composer require dking3876/PhpToTypescript`

### Instructions

[](#instructions)

This package will convert a folder of models and create typescript file structure matching the source with abstract classes for each one. You will need to modify the files with any appropriate import statements (import {User} from './User' ).
Create a php script with the following code.

```
