承接 betterauth/symfony-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

betterauth/symfony-bundle

最新稳定版本:v0.0.18

Composer 安装命令:

composer require betterauth/symfony-bundle

包简介

Symfony bundle for BetterAuth - Modern authentication library

README 文档

README

CI Latest Stable Version Total Downloads PHP Version License

Modern authentication bundle for Symfony with API/session/hybrid modes, token rotation, OAuth, 2FA, and optional multi-tenant features.

TL;DR

composer require betterauth/symfony-bundle
php bin/console better-auth:install
php bin/console better-auth:setup-features --preset=full --with-controllers --migrate

Then check generated routes:

php bin/console debug:router | grep auth

Compatibility

  • PHP: ^8.4
  • Symfony: ^6.4 | ^7.0 | ^8.0
  • API Platform: ^4.0
  • Doctrine ORM: ^3.0
  • Doctrine Migrations Bundle: ^4.0
  • Databases tested in CI:
  1. PostgreSQL
  2. SQLite
  3. MySQL
  4. MariaDB

Database URLs

Use one of these DATABASE_URL values:

# PostgreSQL
DATABASE_URL=postgresql://app:secret@127.0.0.1:5432/app?serverVersion=16&charset=utf8

# SQLite
DATABASE_URL=sqlite:///%kernel.project_dir%/var/data.db

# MySQL
DATABASE_URL=mysql://app:secret@127.0.0.1:3306/app?serverVersion=8.4&charset=utf8mb4

# MariaDB
DATABASE_URL=mysql://app:secret@127.0.0.1:3306/app?serverVersion=mariadb-11.0.2&charset=utf8mb4

Main Console Commands

  • better-auth:install
  • better-auth:setup-features
  • better-auth:add-controller
  • better-auth:user-fields
  • better-auth:configure
  • better-auth:switch-mode
  • better-auth:generate-config
  • better-auth:generate-secret
  • better-auth:setup:dependencies
  • better-auth:setup:logging
  • better-auth:config:update
  • better-auth:publish-templates
  • better-auth:cleanup:sessions
  • better-auth:cleanup:tokens

Documentation

Start here:

Most-used guides:

Security Note

This bundle uses Paseto V4 and supports hardening through configuration, rate limiting strategy, and security monitoring options. For production hardening checklist, see docs/11-SECURITY.md.

License

MIT. See LICENSE.

统计信息

  • 总下载量: 50
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固