Skip to content

Rewrite your app in Rust, piece by piece, checked against the original at every step. Works with TypeScript, JavaScript, Python, Go, Ruby, Java, C, PHP, C#, Kotlin, PowerShell and Swift.

324 B
Raw Blame
<?php

namespace Acme;

use Monolog\Logger;
use Stripe\StripeClient;
use Acme\Greeter;
use function Acme\helper;

class User
{
    public function hello(string $name): string
    {
        (new Logger('app'))->info('hello');
        new StripeClient('sk_test');
        return helper((new Greeter())->greet($name));
    }
}