ai-agent

hyperf-auth: Streamline PHP Authentication for Your Startup

Add robust, ready‑to‑use auth to your Hyperf PHP apps, letting founders focus on core features and secure user management without extra overhead.

From the repo · “hyperf 的 auth 组件”

193 stars38 forksPHPGuide quality 8/10 · reviewed Oct 10Updated 1/11/2024100% free · open source
What it does

Hyperf-auth is a authentication component for Hyperf, a PHP framework, that simplifies user authentication and authorization

When to use it
  • •Building a web application with Hyperf that requires user authentication
  • •Implementing role-based access control in a Hyperf project
  • •Integrating social media login functionality in a Hyperf application
Ready-to-paste prompt
Use the `Auth::attempt(['username' => 'username', 'password' => 'password'])` method to authenticate a user
Heads up: Make sure to configure the `user_provider` in the `config/autoload/auth.php` file to point to your user model, otherwise authentication will not work
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

✅ Light setup

Installs with a command or two; your AI agent can do it for you.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/hyperf-auth && curl -fsSL https://workflowstacks.com/api/skills/hyperf-auth/claude-skill -o ~/.claude/skills/hyperf-auth/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

How hyperf-auth: Streamline PHP Authentication for Your Startup works
Codeflow
Free to inspect

Hyperf-auth: Streamline PHP Authentication for Your Startup is a small PHP project (~1.1k lines across 26 code files, plus 5 test files). Setup is light: install PHP, run one command. Last commit 34 months ago, MIT license, has a test suite.

Size
Small codebase
~1.1k lines · 26 code files · 9 min skim
Setup
Light setup
Install PHP, run one command.
Runs on
PHP
No API keys detected
PHP 99%Shell 1%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
  2. 2
    composer.json
    Dependencies and the commands it exposes
  3. 3
    src/AuthAbility.php
    Inside src/ — the main logic begins here
What's in each folder
src/Core code — the actual logic24 files
publish/Folder1 files
tests/Tests — proof it works6 files
READMEHas testsThin docsCI checksMIT licenseLast update 34 mo ago
Quick Actions
Details
Creator
qbhy
Language
PHP
Category
ai-agent
Published
5/22/2020

Are you the creator of this tool? and earn 85% of every sale.

Show it off in your README:

Featured on WorkflowStacks
[![Featured on WorkflowStacks](https://workflowstacks.com/api/badge/hyperf-auth.svg)](https://workflowstacks.com/skills/hyperf-auth?utm_source=github&utm_medium=badge)
🔥 Hot this week, in your inbox
Skills like this, every Monday.

The five fastest-growing open-source AI skills, ranked by GitHub star growth. One email a week, unsubscribe anytime.