{"id":14968821,"url":"https://github.com/ashishkumbhar01/supabase-php","last_synced_at":"2026-03-14T22:14:27.733Z","repository":{"id":253141635,"uuid":"842588412","full_name":"Ashishkumbhar01/supabase-php","owner":"Ashishkumbhar01","description":"Supabase client for PHP. Supabase for php.","archived":false,"fork":false,"pushed_at":"2025-02-10T08:15:18.000Z","size":185,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T09:24:53.128Z","etag":null,"topics":["php","supabase","supabase-client","supabase-php","supabase-realtime","supabase-storage"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ashishkumbhar01.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["Ashishkumbhar01","CodeWithSushil"],"patreon":"Code_With_Sushil","open_collective":"codewithsushil","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":"codewithsushil","thanks_dev":null,"custom":null}},"created_at":"2024-08-14T16:50:54.000Z","updated_at":"2025-02-10T08:15:15.000Z","dependencies_parsed_at":"2024-11-09T09:26:24.354Z","dependency_job_id":"36483179-e0ed-471b-9195-d883e111fd19","html_url":"https://github.com/Ashishkumbhar01/supabase-php","commit_stats":{"total_commits":101,"total_committers":3,"mean_commits":"33.666666666666664","dds":0.4356435643564357,"last_synced_commit":"67d118ac3a4200e31fc15beb6a88b6cb16a44cff"},"previous_names":["ashishkumbhar01/supabase-php"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ashishkumbhar01%2Fsupabase-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ashishkumbhar01%2Fsupabase-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ashishkumbhar01%2Fsupabase-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ashishkumbhar01%2Fsupabase-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ashishkumbhar01","download_url":"https://codeload.github.com/Ashishkumbhar01/supabase-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238264674,"owners_count":19443388,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["php","supabase","supabase-client","supabase-php","supabase-realtime","supabase-storage"],"created_at":"2024-09-24T13:40:37.326Z","updated_at":"2025-10-26T05:30:45.154Z","avatar_url":"https://github.com/Ashishkumbhar01.png","language":"PHP","funding_links":["https://github.com/sponsors/Ashishkumbhar01","https://github.com/sponsors/CodeWithSushil","https://patreon.com/Code_With_Sushil","https://opencollective.com/codewithsushil","https://buymeacoffee.com/codewithsushil"],"categories":[],"sub_categories":[],"readme":"![Supabase](https://getlogo.net/wp-content/uploads/2020/11/supabase-logo-vector.png)\n\n![GitHub Repo stars](https://img.shields.io/github/stars/CodeWithSushil/supabase-client?style=for-the-badge\u0026logo=Github)\n![Packagist Downloads](https://img.shields.io/packagist/dt/supabase-php/supabase-client?style=for-the-badge\u0026logo=composer)\n![GitHub Release](https://img.shields.io/github/v/release/Ashishkumbhar01/supabase-php?style=for-the-badge)\n![GitHub License](https://img.shields.io/github/license/Ashishkumbhar01/supabase-php?style=for-the-badge)\n![GitHub forks](https://img.shields.io/github/forks/Ashishkumbhar01/supabase-php?style=for-the-badge\u0026logo=Github)\n[![GitHub Sponsors](https://img.shields.io/github/sponsors/Ashishkumbhar01?style=for-the-badge\u0026logo=Github%20Sponsors\u0026label=Support%20me)](https://github.com/sponsors/Ashishkumbhar01)\n\n\nSupabase  client for PHP:\n- Realtime database, Storage, Authentication and many more.\n- When you creating your supabase table, make sure RLS (Row Level Security) option be [×] disable.\n- If RLS are enable [✓] maybe you getting some error so you need to use `Auth class`.\nAuth class coming soon.\n\n### `Install`\n* Install Supabase client for our project.\n* Than we are require supabase-client by composer.\n\n```bash\ncomposer require supabase-php/supabase-client      # letest\n# OR Downloads old version\ncomposer require supabase-php/supabase-client:\"1.0.4\"\n```\n\n### Config\nSupabase client for PHP configuration with your php project/web Apps.\n\n```php\nuse Supabase\\Functions as Supabase;\n\n// autoload the supabase class\nrequire_once('vendor/autoload.php');\n\n// config\n$config = [\n  'url' =\u003e $_ENV['SB_URL'],\n  'apikey' =\u003e $_ENV['SB_APIKEY']\n];\n\n$client = new Supabase($config['url'], $config['apikey']);\n```\nif you did not have `.env` file so please create your `.env` file.\n\n```bash\ntouch .env\n```\n\nif you create already your `.env` file then you will be derclare your enviroment variables names.\n\n```bash\nvi .env\n```\n\n```env\nSB_URL=https://rurtighghurtuhouger.supabase.co\nSB_API_KEY=utertu895tyut8trrvt8rtu8mutt84r548t894v98v5vtt6ut54uu85tu\n```\n\n### `getAllData()`\nif you want to get all recorded data from your table when you saved the data then used `getAllData` function.\n\n```php\n$data = $client-\u003egetAllData('table name');\nprint_r($data);\n```\n\n### `getSingleData()`\nif you need a specifics data from specifics columns then you used `getSingleData` function.\n\n```php\n$data = $client-\u003egetSingleData('table name', 'column name');\nprint_r($data);\n```\n\n### `postData()`\nif you want to save your data to your table then used `postData` function.\n\n```php\n// posted data\n$data = [\n  'name' =\u003e 'PHP',\n  'version' =\u003e '8.3'\n];\n\n$client-\u003epostData('table name', $data, 'id');\n// 3rd option on_conflict\n```\n\n### `updateData()`\nif you thinks something to be wrong or outdated so you will be changing that particular value from particular columns and also you updating all the data.\nThen used `updateData` function.\n\n```php\n// updated data\n$data = [\n  'name' =\u003e 'PHP',\n  'version' =\u003e '8.4'\n];\n\n$client-\u003eupdateData('table name', 'id number', $data);\n```\n\n### `deleteData()`\nif you want to Delete a specificed data from the table, then used `deleteData` function.\nyou needed the id number of table data.\n\n```php\n$client-\u003edeleteData('table name', 2 //id);\n```\n\n### `Pagination()`\n\n```php\n$client-\u003epages('table name');\n```\n\n### `Filtering()`\n\n```\n$client-\u003efilter('table name', 1);\n```\n\n### `Matching()`\n\n```php\n$data = [\n  'name' =\u003e 'PHP',\n  'version' =\u003e '8.4'\n];\n\n$client-\u003ematchs('table name', $data);\n```\n\n### Authentication\n* Auth Class coming soon.\n\n\n### Storage\n* storage class coming soon.\n* \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashishkumbhar01%2Fsupabase-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashishkumbhar01%2Fsupabase-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashishkumbhar01%2Fsupabase-php/lists"}