jaytaph / Transphpile

PHP 7 to PHP 5.6 Transpiler
BSD 3-Clause "New" or "Revised" License
177 stars 9 forks source link

Could not find package jaytaph/transphpile at any version for your minimum-stability (dev). #11

Open programmatix opened 7 years ago

programmatix commented 7 years ago

Hey. So I think this issue is down to my php-n00bness rather than a problem, but I can't seem to install it:

> composer require jaytaph/transphpile

  [InvalidArgumentException]
  Could not find package jaytaph/transphpile at any version for your minimum-stability (dev). Check the package spelling or your minimum-stability

I've set my minimum-stability down to dev as you can see, but still no joy.

I tried compiling the source, which succeeded, but on run I get (and again this is probably just me being new to PHP and composer):

> php transPHPILE.PHAR transpile ..\screen_signup_login.php

Fatal error: Uncaught Error: Class 'Transphpile\Transpile\Visitors\phar:\\E:\dev\all3\SEOPalWordpress\Transphpile\transphpile.phar\lib\Transphpile\Transpile\Visitors\Php70\AnonymousClassVisitor' not found in phar://E:/dev/all3/SEOPalWordpress/Transphpile/transphpile.phar/lib/Transphpile/Transpile/Transpile.php:93
jaytaph commented 7 years ago

Hi @grahampople

Thanks for trying the transpiler. To be honest, this project is a very early phase, and should be seen as rather a proof of concept than something that is actually usable in (production) code for now. This is why it's not on composer/packagist.

programmatix commented 7 years ago

Ah okay, I was just going from the instructions on the first page. I'm mostly looking for PHP 7's scalar type hinting. Would you say that's reliable enough to use now? I'm writing a Wordpress plugin and need maximum compatibility with 5.X, but I really want 7's type hinting.