PHPackages                             sayid/php-cas-core - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. sayid/php-cas-core

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sayid/php-cas-core
==================

thrift java/php rpc files

11.0k1PHP

Since Nov 14Pushed 5y ago2 watchersCompare

[ Source](https://github.com/sayid/php-cas-token)[ Packagist](https://packagist.org/packages/sayid/php-cas-core)[ RSS](/packages/sayid-php-cas-core/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (2)Used By (0)

目前只支持cas2.0

```
    $cas = new \PhpCasCore\Cas(env("CAS_SERVER"), env("CAS_PATH"));
    $func = function ($url) {
        getGouuseCore()->ResponseLib->redirect($url);
    };
    //回调的地址
    $cas->callBackUrl("http://127.0.0.1/user_center/auth-cas");
    //需要携带的参数
    $cas->setQueryString($request->getQueryString() ?? "");
    $cas->setRequest($request->input(), $request->server());
    $cas->setRedirectCall($func);
    try {
        $user = $cas->isAuthenticated();
        if ($user) {
            //单点登录成功
        }
     } catch (\Exception $e) {

     }
     //单点登录失败

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a151d147f637cdfa5c3c151ecd5b2ff6fbad6b6de71fabd96c34665eb588342f?d=identicon)[zyb88325](/maintainers/zyb88325)

---

Top Contributors

[![sayid](https://avatars.githubusercontent.com/u/362920?v=4)](https://github.com/sayid "sayid (3 commits)")

### Embed Badge

![Health badge](/badges/sayid-php-cas-core/health.svg)

```
[![Health](https://phpackages.com/badges/sayid-php-cas-core/health.svg)](https://phpackages.com/packages/sayid-php-cas-core)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
