-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Support for PHP-8 #181
feat: Support for PHP-8 #181
Conversation
Adjust the classes and dependencies to support PHP-8.1 Resolves: heiseonline#170 Resolves: heiseonline#175
e575c6f
to
2a05ba7
Compare
I have merged this PR into a branch on my fork and have tested it and can confirm that it works. So this PR is ok, maybe except of some code style changes with which I'm not happy, so I've reverted them in my fork. |
@richard67 Thanks for the info and your work. Code-Style-wise I highly recommend sticking to PSR-12. https://www.php-fig.org/psr/psr-12/ Please let me know, when you merged your branch into your master branch. |
@liayn I know it, we use it for Joomla, of which I'm a maintainer.
You mean also https://github.com/richard67/shariff-plus for the frontend? Or only my fork of the backend? My shariff-plus has - in addition to shariff - a "Like" button for Facebook, but I would not recommend to use that button in EU because it doesn't work since Facebook have hardened their data protection. Besides that button, the difference to shariff is that shariff-plus it up to date with the latest changes merged in or proposed for shariff. I have created a new release 2.3.0 yesterday of that. My fork of the backend I will maybe make ready tomorrow or Sunday and do a release (or pre-release or draft release, as long as I'm not sure if this repo here is really abandoned or not). If you after that decide it to use for the official TYPO3 integration, give me a note so I can properly mention it in my README.md. But to be honest, I'm not really sure if I want to take that responsibility. I'm doing this only as hobby, and I cannot promise to maintain all forever. But at least as long as I use it for my website I will keep it alive. |
Yes, we will use frontend and backend.
That's fully up to the integrator anyways, which button they wanna use.
Our TYPO3 extension: https://extensions.typo3.org/extension/rx_shariff Sure, I'll ping you.
Don't worry about this. We lived with the non-maintained original way too long actually. Any improvement is an improvement. |
@liayn I would like to clarify a few questions, e.g. which minimum PHP version we should require, or in other words if we still should support 7.4 and 8.0, but I think we should not pollute this PR here with unrelated discussions. Maybe we continue with email in German language? You could send an email to |
@liayn I've meanwhile released a new version 2.3.1 of my shariff-plus frontend, see https://github.com/richard67/shariff-plus/releases . Check also the change log for version 2.3.0 from 2 days ago to see what has changed, compared to heiseonline. In my fork of the this repository here I've changed the default branch to 10.0-dev and just created a pre-release 10.0.0-alpha1. See https://github.com/richard67/shariff-backend-php/releases . It contains the changes from this PR here and other open PRs in this repository here. Attention: That pre-release increases the PHP minimum version to 8.1, i.e. drops support for PHP 7.x and 8.0. All dependencies are updated to their latest version. More attention: I am using the new releases on my website (URL is in my GitHub profile), and it seems to work. But I have tested only with PHP 8.1, not with 8.2 or 8.3, and I have tested the backend only with standard cache and client configurations. The master branch I've kept in case if it needs to create also a version 9.1.0 which still supports PHP 7.4 and 8.0, but I'd prefer to avoid that. Let me know your opinion by email to Thanks in advance. Update 2023-10-21 18:48 (UTC): I've just updated the zip and tar.gz packages of the 10.0.0-alpha1 release of my backend fork. The "shariff-backend-php-10.0.0-alpha1-dev" packages were wrong, the right ones are "shariff-backend-php-10.0.0-alpha1" (without "-dev" at the end of the base name). |
Hello @erkenes! We see definitely the necessity of integrating There will be a pull-request soon, which will integrate them. @liayn @richard67 Thanks also for your work and interest in our shariff-backend |
@digitalgopnik Unfortunately this PR resulted in the composer.json and composer.lock not being consistent. When running "composer install" on a clean master branch, you get:
When running "composer update" or when removing the composer.lock file, I get:
I think all this should not happen on a clean branch. Shall I open a new issue for that? I have only a dev environment with PHP 8.1 here, so I can't really fix that for older versions. Or do you plan anyway to enlarge the version requirements? |
@richard67 Thanks for your report! 🙏 Somehow i disregarded that. Will take care of it, there's not needed another issue 🙂 |
@richard67 Should be fixed now. Thanks again for your quick report! |
@digitalgopnik Thanks. Last issue: The new release 10.0.0 is missing the 2 assets "shariff-backend-php.tar.gz" and "shariff-backend-php.zip". |
P.S.: The CHANGELOG.md should be updated for 10.0.0, too. |
@richard67 Thanks for your attention! Should be correct now 🙂 |
Adjust the classes and dependencies to support PHP-8.1
Resolves: #170
Resolves: #175