{"id":23028850,"url":"https://github.com/stdakov/php_flash_messages","last_synced_at":"2026-02-07T13:31:49.808Z","repository":{"id":265213935,"uuid":"895449379","full_name":"stdakov/php_flash_messages","owner":"stdakov","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-28T10:29:04.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-27T03:58:54.686Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stdakov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2024-11-28T08:27:33.000Z","updated_at":"2024-11-28T10:29:08.000Z","dependencies_parsed_at":"2024-11-28T13:45:30.680Z","dependency_job_id":null,"html_url":"https://github.com/stdakov/php_flash_messages","commit_stats":null,"previous_names":["stdakov/php_flash_messages"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/stdakov/php_flash_messages","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdakov%2Fphp_flash_messages","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdakov%2Fphp_flash_messages/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdakov%2Fphp_flash_messages/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdakov%2Fphp_flash_messages/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stdakov","download_url":"https://codeload.github.com/stdakov/php_flash_messages/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdakov%2Fphp_flash_messages/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29195102,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T12:38:28.597Z","status":"ssl_error","status_checked_at":"2026-02-07T12:38:23.888Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2024-12-15T14:13:01.156Z","updated_at":"2026-02-07T13:31:49.793Z","avatar_url":"https://github.com/stdakov.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP FLASH messages\nThis is supper simple implementation of php flash messages\n\n## Installation\nThe preferred way to install this tool is through [composer](http://getcomposer.org/download/).\n\nEither run\n\n```\nphp composer.phar require stdakov/flash\n```\n\nor add\n\n```\n\"stdakov/flash\": \"*\"\n```\n\n\n## Usage\n\nset message:\n```php\nrequire 'vendor/autoload.php';\n\nsession_start();\n\nuse Dakov\\FM;\n\nif (isset($_POST['username']) \u0026\u0026 isset($_POST['password'])) {\n\n    $user = getUser($_POST['username']);\n\n    if ($user != null \u0026\u0026 isset($user['id']) \u0026\u0026 password_verify($_POST['password'], $user['password'])) {\n        $_SESSION[\"USER\"] = $user['id'];\n        $hour = time() + 3600 * 24 * 365;\n        setcookie('user_id', $user['id'], $hour);\n    } else {\n        FM::set(\"wrong_credentials\", \"Invalid credentials\");\n    }\n\n    header(\"Location: /\");\n}\n```\nuse the message:\n```html\n\u003cdiv\u003e\n    \u003c?php if (FM::exist(\"wrong_credentials\")): ?\u003e\n        \u003cdiv class=\"alert alert-danger\" role=\"alert\"\u003e\n            \u003c?= FM::flash(\"wrong_credentials\"); ?\u003e\n        \u003c/div\u003e\n    \u003c?php endif; ?\u003e\n\u003c/div\u003e\n```\n\n\n\nThe MIT License (MIT)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstdakov%2Fphp_flash_messages","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstdakov%2Fphp_flash_messages","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstdakov%2Fphp_flash_messages/lists"}