php-casbin / database-adapter

Database adapter for PHP-Casbin, Casbin is a powerful and efficient open-source access control library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Please implement FilterAdapter

pigochu opened this issue · comments

commented

Becasue every request will query all data from casbin_rule, If i have many domain and user , the result will be very large.

I think FilteredAdapter may fix the problem , but I can not find any example for php version.
Anyone who has implemented it for mysql( or any database ) ? please provide it , thanks.

Conversation moved here from another issue: php-casbin/php-casbin#56

commented

@pigochu Doctrine DBAL Adapter for Casbin, you can use this adapter.
It has implemented FilteredAdapter, BatchAdapter, UpdatableAdapter.

@techoner should we deprecate this adapter to let people use: https://github.com/php-casbin/dbal-adapter instead?

commented

@hsluoyz This repo can give users one more choice.

@pigochu Fixed by PR merged: #5

commented

thank you all 👍

@techoner can you help release a new version to composer? Thanks!

commented

OK.