[3.3][ALPHA] phpBB API

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Ideas Centre
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
danieltj
Infrastructure Team Member
Infrastructure Team Member
Posts: 520
Joined: Thu May 03, 2018 9:32 pm
Location: United Kingdom
Name: Daniel James

[3.3][ALPHA] phpBB API

Post by danieltj »

Extension Name: API
Author: danieltj

Extension Description: An unofficial API for the phpBB platform.

Features:
  • Interact with your forum via a REST API
  • Create, read, update & delete data like users, forums and site settings
  • Supports on-forum user permissions via the API
  • ...and (maybe) more!
Extension Version: 0.1.0-alpha

Requirements:
  • phpBB version 3.3.x or later
  • php 7.x or later
Download: https://github.com/danieltj27/api

Note: This extension is currently in bleeding edge development and should never be activated on a production environment until a (stable) beta build has been released. Initial versions of this extension will include security issues whilst the extension is being fully built.
💷 Purchase the Awesome Payments extension today!
Monetise your forum with one off payments and subscriptions.

Need a premium extension created? Send me a PM.
User avatar
nou nou
Registered User
Posts: 680
Joined: Sat Oct 29, 2016 8:08 pm

Re: [3.3][ALPHA] phpBB API

Post by nou nou »

wow wow wow :shock:

🥳
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26832
Joined: Fri Aug 29, 2008 9:49 am

Re: [3.3][ALPHA] phpBB API

Post by Mick »

Pictures please.
  • "The more connected we get the more alone we become” - Kyle Broflovski© 🇬🇧
User avatar
danieltj
Infrastructure Team Member
Infrastructure Team Member
Posts: 520
Joined: Thu May 03, 2018 9:32 pm
Location: United Kingdom
Name: Daniel James

Re: [3.3][ALPHA] phpBB API

Post by danieltj »

Screenshots will be uploaded when the extension has had more development time. It's still very early days yet so it's just a lot of test JSON data.
💷 Purchase the Awesome Payments extension today!
Monetise your forum with one off payments and subscriptions.

Need a premium extension created? Send me a PM.
User avatar
privet.fun
Registered User
Posts: 118
Joined: Sun May 07, 2023 8:46 pm
Location: https://privet.fun

Re: [3.3][ALPHA] phpBB API

Post by privet.fun »

Have you seen this https://github.com/nocodb/nocodb? It has both UI and API capabilities and can scaffold your database via CLI or manually.
User avatar
Toxyy
Registered User
Posts: 964
Joined: Mon Oct 24, 2016 3:22 pm
Location: Namek

Re: [3.3][ALPHA] phpBB API

Post by Toxyy »

privet.fun wrote: Fri May 03, 2024 7:38 pm Have you seen this
What exactly does this have to do with a phpBB API/developing one?
I am a web developer/administrator, specializing in forums. If you have work you need done or are too lazy to do, pm me!

Some of my extensions:
[3.3][BETA] Post Form Templates || [3.3][BETA] Anonymous Posts || [3.2][3.3][BETA] ACP Merge Child Forums || [3.2][BETA] Sticky Ad || [3.2][DEV] User Delete Topics || [3.3][DEV] Moderate While Searching || [3.3][RC] Short Number Twig Extension
User avatar
nou nou
Registered User
Posts: 680
Joined: Sat Oct 29, 2016 8:08 pm

Re: [3.3][ALPHA] phpBB API

Post by nou nou »

Toxyy wrote: Sat May 04, 2024 1:25 am
privet.fun wrote: Fri May 03, 2024 7:38 pm Have you seen this
What exactly does this have to do with a phpBB API/developing one?
I guess the thinking is that if there were an extension that is a bridge between nocodb and your phpBB database, you would get a UI and an API for “free”?

What would the API language be? Python?
User avatar
danieltj
Infrastructure Team Member
Infrastructure Team Member
Posts: 520
Joined: Thu May 03, 2018 9:32 pm
Location: United Kingdom
Name: Daniel James

Re: [3.3][ALPHA] phpBB API

Post by danieltj »

NocoDB is an entirely separate product for databases so I won't be doing anything to use or integrate with it with this extension.
💷 Purchase the Awesome Payments extension today!
Monetise your forum with one off payments and subscriptions.

Need a premium extension created? Send me a PM.
User avatar
nou nou
Registered User
Posts: 680
Joined: Sat Oct 29, 2016 8:08 pm

Re: [3.3][ALPHA] phpBB API

Post by nou nou »

So what do you have in mind as an API?

I work with software that uses python and lua bindings for scripting, so my interest mainly lies there. I can also do everything from cli commands.

How would, for example, posting via the API go? And what about security? Would it require a specific a specific user? Would someone be able to completely flood a database even by some sort of accidental loop?

Maybe too early for some of these questions but sign me up as a tester please 👍😇
User avatar
nou nou
Registered User
Posts: 680
Joined: Sat Oct 29, 2016 8:08 pm

Re: [3.3][ALPHA] phpBB API

Post by nou nou »

also this: https://github.com/senky/phpbb-ext-api

not sure if any of this is useful to you, but I was following that at the time - has it really been 5 years 😳
User avatar
danieltj
Infrastructure Team Member
Infrastructure Team Member
Posts: 520
Joined: Thu May 03, 2018 9:32 pm
Location: United Kingdom
Name: Daniel James

Re: [3.3][ALPHA] phpBB API

Post by danieltj »

nou nou wrote: Sat May 04, 2024 1:49 pm So what do you have in mind as an API?

I work with software that uses python and lua bindings for scripting, so my interest mainly lies there. I can also do everything from cli commands.

How would, for example, posting via the API go? And what about security? Would it require a specific a specific user? Would someone be able to completely flood a database even by some sort of accidental loop?

Maybe too early for some of these questions but sign me up as a tester please 👍😇
Good questions! 👍

Posting via the API is definitely on the roadmap (currently in my head as it's very early days). You would need to get a forum ID and then a user would be able to post to a forum or more specifically a topic if they have the correct permissions.

Crucially user permissions will be used to ensure that users can only view content and alter it based on if they have the required permissions so standard user's can't go posting stuff into a private admin only forum.

Interacting with the API will be done via an API key that will need to be created at some point. Again, it's very early in the development lifecycle so I may change things as I go to see what works better. There will also be rate limits as well to prevent floods. Again, the built in flood limit is a good starting point for that anyway.

The idea behind this extension is that firstly, phpBB needs an API but secondly, it means people could end up doing some really cool off-site work with their forums. An example being the ability to have a live 'now playing' profile field for Spotify or Apple Music etc... that'd be cool. You could even use it to automate posts after an event is triggered from somewhere. It's an API, it could be used for anything! 😂
💷 Purchase the Awesome Payments extension today!
Monetise your forum with one off payments and subscriptions.

Need a premium extension created? Send me a PM.
User avatar
nou nou
Registered User
Posts: 680
Joined: Sat Oct 29, 2016 8:08 pm

Re: [3.3][ALPHA] phpBB API

Post by nou nou »

Speaking of a roadmap - do you have anything in mind, even roughly, as to when you may be able to get to some sort of actual functionality?

(I can't make that question any more vague 😂)
An example being the ability to have a live 'now playing' profile field for Spotify or Apple Music etc
I love that example, hadn't thought of interaction with profile fields and parts of phpBB other than posting!

I did think of functions such as having, for example, a test or gateway forum on a separate domain and building a script to read, select and transfer posts to a forum on a different domain based on certain criteria. I can elaborate on that later 😅
User avatar
nou nou
Registered User
Posts: 680
Joined: Sat Oct 29, 2016 8:08 pm

Re: [3.3][ALPHA] phpBB API

Post by nou nou »

Also happened upon this:

https://github.com/eparsons/RESTApiForPhpBB

I don't know if any of this is useful so feel free to ignore.
User avatar
danieltj
Infrastructure Team Member
Infrastructure Team Member
Posts: 520
Joined: Thu May 03, 2018 9:32 pm
Location: United Kingdom
Name: Daniel James

Re: [3.3][ALPHA] phpBB API

Post by danieltj »

Thanks for sharing those links but I'll be working on this independent of existing (albeit older) extensions.
💷 Purchase the Awesome Payments extension today!
Monetise your forum with one off payments and subscriptions.

Need a premium extension created? Send me a PM.
User avatar
nou nou
Registered User
Posts: 680
Joined: Sat Oct 29, 2016 8:08 pm

Re: [3.3][ALPHA] phpBB API

Post by nou nou »

Good to know, thanks!

Return to “Extensions in Development”