Download the PHP package riverwaysoft/php-converter without Composer

On this page you can find all versions of the php package riverwaysoft/php-converter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-converter

php-converter Latest Version on Packagist Tests PHPStan Total Downloads

Screen Shot 2022-10-07 at 09 04 35

Generates TypeScript & Dart out of your PHP DTO classes.

Why?

Statically typed languages like TypeScript or Dart are great because they allow catching bugs without even running your code. But unless there are well-defined contracts between the API and consumer apps, you may find yourself frequently adjusting outdated typings whenever the API changes. This library generates types for you, enabling you to move faster and encounter fewer bugs.

Requirements

PHP 8.0 or above

Quick start

1) Installation

If the installation leads to dependency conflicts, consider using the standalone Phar version of the package.

2) Mark a few classes with the #[Dto] annotation to convert them into TypeScript or Dart.

4) Run the CLI command to generate TypeScript

This will generate a file generated.ts with the following content:

Features

Customization

If you'd like to customize the conversion process, you need to copy the config script to your project folder:

Now you can customize this config and run the php-converter using the following script:

Documentation


All versions of php-converter with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
nikic/php-parser Version ^4.16
webmozart/assert Version ^1.10
jfcherng/php-diff Version ^6.10
jawira/case-converter Version ^3.4
phpstan/phpdoc-parser Version ^1.6
doctrine/inflector Version ^2.0
composer/xdebug-handler Version ^3.0
symfony/console Version ^5.3|^6.3|^6.2|^6.1|^7.0
symfony/filesystem Version ^5.3|^6.3|^6.2|^6.1|^7.0
symfony/process Version ^5.3|^6.3|^6.2|^6.1|^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package riverwaysoft/php-converter contains the following files

Loading the files please wait ....