Comments (6)
To be honest: i'd rather advise this one person to upgrade their php version to 7+. I've declared php5 for dead a year ago already and dropped support for it - 7.0 is seeing its end already and nobody should be using php5 still. Long term support does not mean we should still be actively developing for it, but rather encourage upgrading. (but that's only my personal opinion ;)
Anyway, i've used my phpstorm superpowers and saw that it was only the combined imports, return types and scalar type hints as well as 2 null coalesce operators, so the change took only a couple minutes - voilà: 1ba7f20
from php-qrcode.
This is awesome, thank you so much for taking the time to make these changes! What do you think my next step would be to use this branch? I'm no composer expert, so I'm not sure where to go from here. Are you planning to making this part of the official 2.x branch and continuing to support php 5.6 officially? Or will this live as its own branch and become available through packagist? I've never provided a library through packagist so I don't really know how much work I'm asking of you. Please let me know if I can help in any way.
As far as encouraging upgrades, I'm with you there. I maintain a few WP related projects, and if you don't like supporting php 5.6 you should try having to support php 5.2 🙄. But ultimately I try to support whatever the platform supports because not every developer is in a position to change their hosting setup. I have a lot of empathy for devs who are stuck having to do whatever they are told to do because I've been there.
Thanks again!
from php-qrcode.
You're very welcome! I'm no composer/packagist expert either and i'm trying to find out how i can tag the php5 release so that it does not interfere with master. 2.0.1-php5
didn't show up on packagist and i'm a bit clueless.
I don't plan to merge it back into the main branch - strict type hinting in php7 is one of the things i don't want to live without anymore. I've even started dropping anything less than 7.2 because 7.2 finally brings strong encryption and more awesome stuff - it's a delight writing php like that.
As much as i can understand not being able to upgrade, i prefer to be up-to-date and future proof.
There is a point where it's no longer worth the effort staying backward compatible, especially in a language that has some reputation for its security issues and when EOL is less than a year away (for both, 5.6 and 7.0) so it's not only time to encourage people to upgrade, but eventually also ring the alarm bells too.
I'm glad that i'm in a position that allows me to do what i want - i've got a "normal" day job that pays my bills and programming is what i do as a hobby - it preserves the creativity, and while i'm at it i'm trying to refresh some outdated things and maybe make some people's lives easier (which also means, i'll do the things i just did for you if it's feasible).
cheers!
from php-qrcode.
update! i managed to get it under the stable relase tag 1.0.8! "chillerlan/php-qrcode": "1.0.8"
. Please let me know if that works for you. Thanks!
edit: fyi: the version number is only virtual, i just chose 1.0.8 as this would be the follow-up php5 release. Technically i'd break the 1.0.x API but that tag isn't used anymore, so i don't worry much.
from php-qrcode.
Awesome! I think this is perfect and we can close this issue.
Thanks again for the help with everything!
from php-qrcode.
That's great! I'm going to close this issue. Feel free to add any feedback!
from php-qrcode.
Related Issues (20)
- Just the raw base64? HOT 1
- How to use imageWithLogo in laravel?
- PHP Fatal Error - Memory limit HOT 1
- Fatal error: Uncaught Error: Class 'chillerlan\QRCode\Output\QRMarkupSVG' not found
- 4.3.4 missing chillerlan\QRCode\Common\EccLevel AND chillerlan\QRCode\Output\QROutputInterface::CUSTOM used in example imagickWithLogo
- VERSION_AUTO with logo for tiny data HOT 8
- SVG QR Code with circles having background HOT 1
- Every image gives "could not find enough finder patterns." error HOT 2
- [BUG] changing the viewbox size doesn't seem to expand the code to fit. HOT 17
- QRGdImage (custom): mime type is not properly set in base64 output HOT 9
- [BUG] strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in vendor/chillerlan/php-qrcode/src/QRCode.php on line 218 HOT 1
- Implement gitattributes HOT 4
- code length overflow. (2196 > 2192 bit) HOT 1
- [ENHANCEMENT] readFromFile/readFromBlob result returning also the QR code coordinates inside the source image HOT 5
- [BUG] QRCode::render() might return unexpected results when data segments were added before the call
- [BUG] php-qrcode does not apply Built-In Output Modules HOT 2
- [BUG] Demo gives 500 Internal Server Error HOT 2
- [DOCS] PHP 8.1 as minimum requirement HOT 4
- QR with Logo not working HOT 1
- outputInterface option does not seem to work on last stable release [BUG] HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-qrcode.