[Info] Extension Writer Tools

Discussion forum for Extension Writers regarding Extension Development.
User avatar
battye
Extension Customisations
Extension Customisations
Posts: 11054
Joined: Wed Feb 11, 2004 11:02 am
Location: Australia

Re: [Info] Extension Writer Tools

Post by battye »

Docker is a pretty handy containerisation program.

I've been playing around with a Docker image for the purposes of getting PHP, MySQL, Apache, XDebug to play nicely with VS Code on Mac (although should work on any OS). The Docker image I forked from has phpMyAdmin too, I've tried installing phpBB on here as well and it's great.

I haven't seen XDebug mentioned in the topic yet, but it's an incredible tool (works with VS Code or PHPStorm) which lets you use breakpoints in code so that when you load a PHP page in the browser, it automatically highlights the line of code that is being executed along with the ability to inspect values of variables.

(I've put my Docker setup and documentation on GitHub at https://github.com/battye/battye-docker-lamp if anyone is interested in Docker and looking for a starting point - big thanks to Marc for helping me out with some Docker questions as I'm forcing myself to learn Docker after using Vagrant for a few years :) )
Customisations Team Member

https://github.com/battye/php-array-parser - Give it a Star! :D
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco

Re: [Info] Extension Writer Tools

Post by 3Di »

battye wrote: Tue Apr 26, 2022 7:07 am I haven't seen XDebug mentioned in the topic yet, but it's an incredible tool (works with VS Code or PHPStorm)
I don't know what you all find so exciting about a Docker. I use Win11 and Wampserver which allows me to have all versions of PHP and MySql and MariaDB available, along with all versions of Apache. In addition I can use XDebug at the same time. I can switch between all possible combinations and assign the result to a specific previously installed version of phpBB (also with quickInstall). It also allows Apache 2.4.52fcgi - in short, with a single program I have the world of development completely at my fingertips, with a graphical user interface. Ah... what a beautiful life.

To give you an example: I'm on phpBB 3.3.7 with PHP 8.1.5 and I want to see if the same bug shows up with PHP 7.1.3... simple, I click on the PHP version and bring it back, then refresh the page.... et voilat, in 2 seconds I'm up and running.

Not to mention that phpStorm is TEH tool of choice, at least for me.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
battye
Extension Customisations
Extension Customisations
Posts: 11054
Joined: Wed Feb 11, 2004 11:02 am
Location: Australia

Re: [Info] Extension Writer Tools

Post by battye »

When I used Windows, what I liked about Vagrant (and the same can be done with Docker) is that you can log into the virtual machine and run Unix commands and access the system directly. It's handy because your development environment can match the production environment to some extent.

But WAMP, MAMP, etc are great tools as well, I like them. We're lucky that PHP development is so easy to get into and there's a lot of different ways to do so - compared to something like iOS development which when I've looked into it looks like a steep learning curve and a lot of setup time.
Customisations Team Member

https://github.com/battye/php-array-parser - Give it a Star! :D
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco

Re: [Info] Extension Writer Tools

Post by 3Di »

battye wrote: Tue Apr 26, 2022 9:31 am is that you can log into the virtual machine and run Unix commands and access the system directly
You can do the same using a shell like GIT Bash. At the same time.
battye wrote: Tue Apr 26, 2022 9:31 am But WAMP, MAMP, etc are great tools as well, I like them.
WAMP is a great tool. ;)

Please note the new link: https://wampserver.aviatechno.net/?lang=en so that you can maybe fix the starting post of this topic, which leads to an obsoleted site. ;)
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
battye
Extension Customisations
Extension Customisations
Posts: 11054
Joined: Wed Feb 11, 2004 11:02 am
Location: Australia

Re: [Info] Extension Writer Tools

Post by battye »

I don't mind updating the link in the original post, but what is the difference between http://www.wampserver.com/en/ and https://wampserver.aviatechno.net/?lang=en ?

Is the aviatechno one an unofficial fork for newer versions of Windows or are they they official maintainers now?
Customisations Team Member

https://github.com/battye/php-array-parser - Give it a Star! :D
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco

Re: [Info] Extension Writer Tools

Post by 3Di »

battye wrote: Tue Apr 26, 2022 10:10 am I don't mind updating the link in the original post, but what is the difference between http://www.wampserver.com/en/ and https://wampserver.aviatechno.net/?lang=en ?

Is the aviatechno one an unofficial fork for newer versions of Windows or are they they official maintainers now?
Long story short: they are the official maintainers now, since years. Just Otomatic uses a own server for that. DId you see the stuffs are under the same domain? http://forum.wampserver.com/list.php?2

I know Otomatic (virtually), - Maintenance / Roadmap : Dominique Ottello -

you can trust me.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
battye
Extension Customisations
Extension Customisations
Posts: 11054
Joined: Wed Feb 11, 2004 11:02 am
Location: Australia

Re: [Info] Extension Writer Tools

Post by battye »

I believe you, I was just curious what had happened because I haven't used WAMP in many years. I've updated the original post with Vagrant and Docker links as well.
Customisations Team Member

https://github.com/battye/php-array-parser - Give it a Star! :D
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco

Re: [Info] Extension Writer Tools

Post by 3Di »

battye wrote: Tue Apr 26, 2022 10:31 am I believe you, I was just curious what had happened because I haven't used WAMP in many years. I've updated the original post with Vagrant and Docker links as well.
Well, my link is the top edge of the Wamp development.
The real problem is the forum (old PHP, very old custom PHP forum).
I'll try to create a converter in due course, If I'm still alive. :)
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
User avatar
cactux
Registered User
Posts: 37
Joined: Wed Sep 07, 2005 10:16 am

Re: [Info] Extension Writer Tools

Post by cactux »

Hello,
Is the first post of this topic still up-to-date?
I tried the extension "Re-Enable Extensions" and it does not seem to work with phpBB 3.3.10. The latest commit in github is 9 years ago. I get the message that the yaml file is not valid, and all extensions are thus disabled. Putting quotes around @user in the yaml file solves the error message, but then the extension does not seem to do anything.
Anyway, the goal is not to do the support of this specific extension here, but to know if this post is the one to follow for new extension developers or if you'd recommend a better one.
Thanks :)
Last edited by cactux on Wed Apr 12, 2023 7:31 pm, edited 1 time in total.
Au Cactus Francophone : http://www.cactuspro.com/
User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 18489
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón

Re: [Info] Extension Writer Tools

Post by DavidIQ »

Since many of those aren't official tools we aren't necessarily endorsing them nor are we keeping track if they're being updated. If one of the listed tools is no longer functioning we can take it off the list or replace it with an equivalent functioning extension (i.e. working fork).

The "Re-enable Extensions" extension doesn't seem to have a viable fork though so I can just remove it from the list, unless someone has a replacement.
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.
rxu
Extensions Development Team
Posts: 3969
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation

Re: [Info] Extension Writer Tools

Post by rxu »

cactux wrote: Wed Apr 12, 2023 7:20 pm I get the message that the yaml file is not valid
If only this, the extension is probably just requires a small change of service dependency to be quoted, i.e. replace - @user with - '@user' in ext/lavigor/reenable/config/services.yml.
User avatar
bonelifer
Community Team Member
Community Team Member
Posts: 3629
Joined: Wed Oct 27, 2004 11:35 pm
Name: William

Re: [Info] Extension Writer Tools

Post by bonelifer »

DavidIQ wrote: Wed Apr 12, 2023 7:25 pm Since many of those aren't official tools we aren't necessarily endorsing them nor are we keeping track if they're being updated. If one of the listed tools is no longer functioning we can take it off the list or replace it with an equivalent functioning extension (i.e. working fork).

The "Re-enable Extensions" extension doesn't seem to have a viable fork though so I can just remove it from the list, unless someone has a replacement.
https://www.phpbb.com/customise/db/exte ... ompletely/
William Jacoby - Community Team
Knowledge Base | phpBB Board Rules | Search Customisation Database
Please don't contact me via PM or email for phpBB support .

phpBB Modders is looking for developers! If you have phpBB experience and want to join us, click here!
User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 18489
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón

Re: [Info] Extension Writer Tools

Post by DavidIQ »

Updated the list, thanks.
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.

Return to “Extension Writers Discussion”