{"id":25873156,"url":"https://github.com/tidjee-dev/bcd-hackers_poulette","last_synced_at":"2026-02-13T15:34:19.341Z","repository":{"id":274436166,"uuid":"921590231","full_name":"tidjee-dev/bcd-hackers_poulette","owner":"tidjee-dev","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-28T14:02:21.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T08:39:34.179Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tidjee-dev.png","metadata":{"files":{"readme":"DOCS/README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-01-24T08:32:57.000Z","updated_at":"2025-01-28T13:24:25.000Z","dependencies_parsed_at":"2025-01-27T10:39:04.427Z","dependency_job_id":null,"html_url":"https://github.com/tidjee-dev/bcd-hackers_poulette","commit_stats":null,"previous_names":["tidjee-dev/bcd-hackers_poulette"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tidjee-dev/bcd-hackers_poulette","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidjee-dev%2Fbcd-hackers_poulette","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidjee-dev%2Fbcd-hackers_poulette/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidjee-dev%2Fbcd-hackers_poulette/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidjee-dev%2Fbcd-hackers_poulette/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tidjee-dev","download_url":"https://codeload.github.com/tidjee-dev/bcd-hackers_poulette/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidjee-dev%2Fbcd-hackers_poulette/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273447023,"owners_count":25107274,"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-03T02:00:09.631Z","response_time":76,"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":[],"created_at":"2025-03-02T08:29:59.048Z","updated_at":"2026-02-13T15:34:14.311Z","avatar_url":"https://github.com/tidjee-dev.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hackers Poulette\n\n- Type of challenge: `consolidation`, DUO OR SOLO\n- Repository: `hackers-poulette`\n- Duration: `3 days`\n\nCAUTION: This project will use PHP. Github page doesn't support PHP. So you will have to use a host to deploy your project. You can use [00webhost](https://www.000webhost.com/) or any other free hosting service you can find. A personnal host (OVH, Gandi, etc.) **IF YOU HAVE ONE**, or have some money to spare to buy a domain name and a hosting plan. This is **not** a requirement to have a personal host.\n\n## The mission\n\nThe company _Hackers Poulette ™_ sells Raspberry Pi accessory kits to build\nyour own. They want to allow their users to contact their support team. Your\nmission is to create a fully-functioning online \"contact support\" form, in _PHP_. It must _display a contact form_ and _process the received answer_ (sanitize, validate, answer the user).\n\n## The form\n\nAt the minimum the form should include the following fields:\n\n- name\n  \u003e required, string, at least 2 char, max 255\n- firstname\n  \u003e required, string, at least 2 char, max 255\n- email address\n  \u003e required, at least 2 char, max 255, must be a valid email address\n- file\n  \u003e optional, must be a valid file type (jpg, png, gif) ( OR a link to platform hosting your image ex: cloudinary), size max 2MB\n- description\n  \u003e required, at least 2 char, max 1000 char\n\n## 🌱 Must-have features\n\n- Use of PHP\n- Database with PDO connection\n- The form's html code _must_ be [semantically valid](https://www.w3.org/2001/sw/wiki/W3C_Validator) and [accessible](https://formspree.io/blog/accessible-forms/)\n- Client side validation with _JavaScript_\n- Work on a good and clear _user experience_ (UX)\n- Use libraries such as Bulma, Tailwind, Bootstrap, ...\n- In case of wrong input, the form should display a useful visual clue about the error, **below** each inputs fields.\n- The error messages must be readable and helpful to users.\n- The data has to be _sanitised_ and _validated_ (server side)\n- Once the form is validated, the data should be send to the database.\n- Spam prevention using [captcha](https://www.google.com/search?q=captcha+spam+prevention)\n\n### 🌼 Nice-to-have\n\nOnce you have ticked all the above boxes, you can add some of the following features:\n\n- If all required inputs are valid, the script should respond by email to a given address, confirming the reception of the message. (you can use your own address for testing purposes)\n- Discover [composer](https://getcomposer.org/doc/00-intro.md) and use it to install a PHP library such as [SwiftMailer](https://symfony.com/doc/current/mailer.html) to send the email or to validate the form with library such as [rakit/validation](https://github.com/rakit/validation), [valitron](https://github.com/vlucas/valitron) or [symfony/mailer](https://symfony.com/doc/current/mailer.html)\n- Protect your form against the most common attacks (CSRF, XSS, SQL injection, etc.) ressources: [OWASP](https://owasp.org/www-project-top-ten/), [OWASP Cheat Sheet XSS](https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html), [OWASP Cheat Sheet SQL injection](https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html)\n\n### 🌴 Great-to-have\n\n- Create a dashboard to display the received messages (admin side) which allow to manage the messages status (handled, not handled, response, etc..)\n\n### Resources\n\n- [error message](http://uxmas.com/2012/the-4-hs-of-writing-error-messages)\n- [class mailer](https://github.com/PHPMailer/PHPMailer)\n- [accessible form](https://formspree.io/blog/accessible-forms/)\n- [semantically valid](https://www.w3.org/2001/sw/wiki/W3C_Validator)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftidjee-dev%2Fbcd-hackers_poulette","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftidjee-dev%2Fbcd-hackers_poulette","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftidjee-dev%2Fbcd-hackers_poulette/lists"}