PHPackages                             authpyk/ac - 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. authpyk/ac

ActiveLibrary

authpyk/ac
==========

1.0.2(4y ago)126MITPHP

Since Jul 25Pushed 4y agoCompare

[ Source](https://github.com/nurraga/authpyk)[ Packagist](https://packagist.org/packages/authpyk/ac)[ RSS](/packages/authpyk-ac/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)DependenciesVersions (4)Used By (0)

authpyk
=======

[](#authpyk)

A library to check Access Control on SSO Payakumbuh

System Required
---------------

[](#system-required)

Require laravel saml2 auth installed on your laravel project.

Installation
------------

[](#installation)

Require it from "composer":

```
$ composer require authpyk/ac

```

Add the facade aliases in your app configuration file `config/app.php`:

```
'aliases' => [
	      ...
        'CheckAccess' => Authpyk\Ac\CheckAccess::class,
]

```

Autoloading
-----------

[](#autoloading)

By default the Authpyk classes are not loaded automatically. You can autoload your modules using psr-4. For example:

```
{
  "autoload": {
    "psr-4": {
      "App\\": "app/",
      "Authpyk\\AC\\": "packages/authpyk/ac/src"
    }
  }
}

```

Tip: don't forget to run `composer dump-autoload` afterwards.

Basic Usage
-----------

[](#basic-usage)

Use this to get access on your module controller:

```
CheckAccess::module(str_replace('Controller','',substr((new \ReflectionClass($this))->getShortName(), 0)), __FUNCTION__);

```

Or you can overwrite the first and the second parameter:

```
CheckAccess::module('moduleName','functionName');

```

Example
-------

[](#example)

```
  public function index()
  {
      $accessControl = CheckAccess::module(str_replace('Controller','',substr((new \ReflectionClass($this))->getShortName(), 0)), __FUNCTION__);

        if($accessControl){

            $access = 'Access granted';

        }else{

            $access = 'Access denied';

        }

        return view('rincianaktivitasanjab::index')->with('access',$access);
  }

```

Licence
-------

[](#licence)

This library is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~398 days

Total

3

Last Release

1690d ago

### Community

Maintainers

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

---

Top Contributors

[![nurraga](https://avatars.githubusercontent.com/u/7357071?v=4)](https://github.com/nurraga "nurraga (13 commits)")

### Embed Badge

![Health badge](/badges/authpyk-ac/health.svg)

```
[![Health](https://phpackages.com/badges/authpyk-ac/health.svg)](https://phpackages.com/packages/authpyk-ac)
```

PHPackages © 2026

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