{"id":16134170,"url":"https://github.com/developpeurpascal/kofi-api-webhook-endpoint","last_synced_at":"2025-09-06T01:33:51.866Z","repository":{"id":246396425,"uuid":"820961604","full_name":"DeveloppeurPascal/KoFi-API-Webhook-Endpoint","owner":"DeveloppeurPascal","description":"A simple PHP script (and other tools) to receive Ko-Fi notifications from their webhook.","archived":false,"fork":false,"pushed_at":"2024-12-25T18:38:56.000Z","size":25,"stargazers_count":0,"open_issues_count":8,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-29T00:59:45.317Z","etag":null,"topics":["kofi","kofi-webhook","php-api","php-library","php-tools","webhook"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DeveloppeurPascal.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog/20240627-DeveloppeurPascal.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"DeveloppeurPascal","ko_fi":"patrick_premartin_en","patreon":"patrickpremartin","liberapay":"PatrickPremartin"}},"created_at":"2024-06-27T14:22:01.000Z","updated_at":"2024-12-25T18:38:59.000Z","dependencies_parsed_at":"2024-06-27T19:49:05.828Z","dependency_job_id":"592c3420-6b7c-4c53-9756-e8f431d582a9","html_url":"https://github.com/DeveloppeurPascal/KoFi-API-Webhook-Endpoint","commit_stats":null,"previous_names":["developpeurpascal/kofi-api-webhook-endpoint"],"tags_count":1,"template":false,"template_full_name":"DeveloppeurPascal/Delphi-Projects-Template","purl":"pkg:github/DeveloppeurPascal/KoFi-API-Webhook-Endpoint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeveloppeurPascal%2FKoFi-API-Webhook-Endpoint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeveloppeurPascal%2FKoFi-API-Webhook-Endpoint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeveloppeurPascal%2FKoFi-API-Webhook-Endpoint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeveloppeurPascal%2FKoFi-API-Webhook-Endpoint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DeveloppeurPascal","download_url":"https://codeload.github.com/DeveloppeurPascal/KoFi-API-Webhook-Endpoint/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeveloppeurPascal%2FKoFi-API-Webhook-Endpoint/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273846973,"owners_count":25178629,"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","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["kofi","kofi-webhook","php-api","php-library","php-tools","webhook"],"created_at":"2024-10-09T22:47:53.723Z","updated_at":"2025-09-06T01:33:51.825Z","avatar_url":"https://github.com/DeveloppeurPascal.png","language":"PHP","funding_links":["https://github.com/sponsors/DeveloppeurPascal","https://ko-fi.com/patrick_premartin_en","https://patreon.com/patrickpremartin","https://liberapay.com/PatrickPremartin","https://ko-fi.com/","https://ko-fi.com/manage/webhooks","https://www.patreon.com/patrickpremartin","https://www.paypal.com/paypalme/patrickpremartin"],"categories":[],"sub_categories":[],"readme":"# Ko-fi API webhook endpoint\n\n[Cette page en français.](LISEZMOI.md)\n\nWhether you are streamer on Twitch, youtubeur, tiktoker or content creator, musician, cartoonist, actor or artist, software developer, mobile applications or video games, author or publisher, if you use [Ko-fi](https://ko-fi.com/) to receive donations or payments it may be useful to know in real time. It allows you to automate your deliveries, display alerts, receive notifications or emails.\n\nKo-fi offers a very simple API to do what you want with [a webhook](https://ko-fi.com/manage/webhooks). They are told the URL of an online program. They call it each time they get a payment.\n\nIt's up to us to do something about it then...\n\n## Use\n\nIn this code repository you will find a folder \"src\" containing the PHP program \"kofi-webhook.php\", subfolders and other files.\n\nSet it up with your control token, install it all on your website (preferably in a complicated folder not to fall on it by chance) and give its URL to Ko-fi.\n\nAt each call (so each payment) the program checks the consistency of what it receives and stores the data in a file in the subfolder \"kofi-data\" in the form \"AAMMJJHHMMSS-xxx.json\" (AAAA for the year, MM for the month, JJ for the day, HH for the hours, MM for the minutes, SS for the seconds and xxx as the random alphanumeric value).\n\nAll you have to do is browse this folder regularly to process its content and do what you need.\n\nIf you want to go further and don't know how to program or don't know how to install all this don't hesitate to [contact me](https://trucs-de-developpeur-web.fr/nous-contacter.php). I can do this for you in the form of service delivery or exchange.\n\n## Source code installation\n\nTo download this code repository, we recommend using \"git\", but you can also download a ZIP file directly from [its GitHub repository](https://github.com/DeveloppeurPascal/KoFi-API-Webhook-Endpoint).\n\n## License to use this code repository and its contents\n\nThis source code is distributed under the [AGPL 3.0 or later license](https://choosealicense.com/licenses/agpl-3.0/).\n\nYou are generally free to use the contents of this code repository anywhere, provided that:\n* you mention it in your projects\n* distribute the modifications made to the files supplied in this project under the AGPL license (leaving the original copyright notices (author, link to this repository, license) which must be supplemented by your own)\n* to distribute the source code of your creations under the AGPL license.\n\nIf this license doesn't suit your needs, you can purchase the right to use this project under the [Apache License 2.0](https://choosealicense.com/licenses/apache-2.0/) or a dedicated commercial license ([contact the author](https://developpeur-pascal.fr/nous-contacter.php) to explain your needs).\n\nThese source codes are provided as is, without warranty of any kind.\n\nCertain elements included in this repository may be subject to third-party usage rights (images, sounds, etc.). They are not reusable in your projects unless otherwise stated.\n\n## How to ask a new feature, report a bug or a security issue ?\n\nIf you want an answer from the project owner the best way to ask for a new feature or report a bug is to go to [the GitHub repository](https://github.com/DeveloppeurPascal/KoFi-API-Webhook-Endpoint) and [open a new issue](https://github.com/DeveloppeurPascal/KoFi-API-Webhook-Endpoint/issues).\n\nIf you found a security issue please don't report it publicly before a patch is available. Explain the case by [sending a private message to the author](https://developpeur-pascal.fr/nous-contacter.php).\n\nYou also can fork the repository and contribute by submitting pull requests if you want to help. Please read the [CONTRIBUTING.md](CONTRIBUTING.md) file.\n\n## Support the project and its author\n\nIf you think this project is useful and want to support it, please make a donation to [its author](https://github.com/DeveloppeurPascal). It will help to maintain the code and binaries.\n\nYou can use one of those services :\n\n* [GitHub Sponsors](https://github.com/sponsors/DeveloppeurPascal)\n* [Liberapay](https://liberapay.com/PatrickPremartin)\n* [Patreon](https://www.patreon.com/patrickpremartin)\n* [Paypal](https://www.paypal.com/paypalme/patrickpremartin)\n\nor if you speack french you can [subscribe to Zone Abo](https://zone-abo.fr/nos-abonnements.php) on a monthly or yearly basis and get a lot of resources as videos and articles.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloppeurpascal%2Fkofi-api-webhook-endpoint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeveloppeurpascal%2Fkofi-api-webhook-endpoint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloppeurpascal%2Fkofi-api-webhook-endpoint/lists"}