inklabs / kommerce-core

PHP shopping cart core platform
https://kommerce-laravel-demo.jamieisaacs.com/
Apache License 2.0
65 stars 14 forks source link

PHP 7 Support and Roadmap #16

Closed bryan-maxwell closed 7 years ago

bryan-maxwell commented 8 years ago

We need to consider tagging the current release candidate as being supported up to PHP version 5.x and the PHP 7 version would be tagged accordingly. This way developers using older versions of PHP can still benefit from the core.

We will not offer support for the PHP 5.x supported release of core but it will still be available for forking, pull requests and use in the PHP community.

All further development will occur on the PHP7 tag and branches. This will allow us to roadmap features and PHP7 support to incentivize the switch for other developers and the community, but still allow them to work with the code in a familiar environment.

pdt256 commented 8 years ago

This is a fair compromise. We are targeting a core release (v1.0) soon which requires PHP 5.6. The next major release (v2.0) can require PHP 7. That might happen in Q1 or Q2 next year.

fulopattila122 commented 8 years ago

Just a side note, there's no PHP 6.x

;) cheers

bryan-maxwell commented 8 years ago

Fixed! I think it's a mental habit to have 6 before 7 :)

I like the idea that we'll release 1.0 with support up to 5.6 and future releases will be 7.x.

pdt256 commented 8 years ago

Typed Properties in 7.1 would be a great addition to the EntityDTO objects. https://wiki.php.net/rfc/typed-properties

class Foo {
  public int $int = 1;
  public float $flt = 2.2;
  public array $arr = [];
  public bool $bool = false;
  public string $string;
  public callable $callable;
  public stdClass $std;
  public OtherThing $other;
  public $mixed;
}
pdt256 commented 7 years ago

We will require PHP 7.1 in the next release.

pdt256 commented 7 years ago

unit tests now pass in PHP 7.1. 23971da2ecc6a0ed98346e6135cce5b4d8a09368

pdt256 commented 7 years ago

Work is tracked on this branch: https://github.com/inklabs/kommerce-core/commits/php71

pdt256 commented 7 years ago

PR is up: https://github.com/inklabs/kommerce-core/pull/112