PHP Supabase Comments

Hi all! 😊

After a long year, I’m finally publishing a post on dev.to!

I’ve created a simple comment system built using PHP and Supabase. This project was inspired from Supacomments dev by @mcnaveen – Blazing fast comment system with Sveltejs and Sup…


This content originally appeared on DEV Community and was authored by Santhosh Veer

Hi all! 😊

After a long year, I’m finally publishing a post on dev.to!

I’ve created a simple comment system built using PHP and Supabase. This project was inspired from Supacomments dev by @mcnaveen - Blazing fast comment system with Sveltejs and Supabase

Features

  • PHP (7.4 to 8.x.x) support
  • Supabase for storing comments in the database
  • Pagination for comments
  • Modern and responsive UI using Bulma CSS
  • Comprehensive security for input forms and spam prevention
  • Cloudflare Turnstile for additional spam protection

This project is completely free and open-source! Feel free to fork the GitHub repository and customize according it to your needs. 😊

GitHub logo mskian / php-supabase-comments

A Simple Comment system built using PHP and Supabase.

PHP Supabase Comments

A simple comment system built with PHP and Supabase.

Features

  • PHP (7.4 to 8.x.x) support
  • Supabase for storing comments in the database
  • Pagination for comments
  • Modern and responsive UI using Bulma CSS
  • Comprehensive security for input forms and spam prevention
  • Cloudflare Turnstile for additional spam protection

setup

-- Create the table with necessary fields
CREATE TABLE user_comments (
    id SERIAL PRIMARY KEY,            -- Auto-incrementing primary key
    name VARCHAR(255) NOT NULL,        -- Name of the user (max length 255)
    comment TEXT NOT NULL,            -- Comment field to store user input
    created_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP -- Timestamp with timezone
);
## Supabase
supabaseUrl=https://example.supabase.co
apiKey=
pkey=
table=comments
## Cloudflare turnstile
secretKey=


This content originally appeared on DEV Community and was authored by Santhosh Veer


Print Share Comment Cite Upload Translate Updates
APA

Santhosh Veer | Sciencx (2025-01-22T03:59:39+00:00) PHP Supabase Comments. Retrieved from https://www.scien.cx/2025/01/22/php-supabase-comments/

MLA
" » PHP Supabase Comments." Santhosh Veer | Sciencx - Wednesday January 22, 2025, https://www.scien.cx/2025/01/22/php-supabase-comments/
HARVARD
Santhosh Veer | Sciencx Wednesday January 22, 2025 » PHP Supabase Comments., viewed ,<https://www.scien.cx/2025/01/22/php-supabase-comments/>
VANCOUVER
Santhosh Veer | Sciencx - » PHP Supabase Comments. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/01/22/php-supabase-comments/
CHICAGO
" » PHP Supabase Comments." Santhosh Veer | Sciencx - Accessed . https://www.scien.cx/2025/01/22/php-supabase-comments/
IEEE
" » PHP Supabase Comments." Santhosh Veer | Sciencx [Online]. Available: https://www.scien.cx/2025/01/22/php-supabase-comments/. [Accessed: ]
rf:citation
» PHP Supabase Comments | Santhosh Veer | Sciencx | https://www.scien.cx/2025/01/22/php-supabase-comments/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.