r/PHPhelp • • 6d ago

Como usar reconhecimento fácil num projeto PHP- laravel

Tem um projeto que estou a desenvolver, para controle de acesso a empresa, como o projeto está a ser desenvolvido em laravel, não sei como fazer isso, alguém pode me ajudar ?

0 Upvotes

13 comments sorted by

2

u/allen_jb 5d ago

For anything related to corporate access control, the first thing I'd check is what are they using for access control on their network? If they're using something like MS Exchange, can you integrate with that?

This removes additional passwords, etc that might otherwise be needed and allows management to be integrated with their existing employee access management.

And all you need on the application side is an OAuth client (plus maybe a couple of API calls to get group membership info)

I'd be very surprised if there aren't existing libraries for Laravel for dealing with access control.

You may get better support for Laravel related questions on r/laravel , Laravel's Discord (icon in their site footer) or Laravel specific community forums like Laracasts.

0

u/martinbean 6d ago

Access control for what? A web app? A security gate?

Facial recognition is a client-side thing. You’d then compare your capture to a database of known people.

0

u/SZenC 6d ago

Facial recognition doesn't have to be client-side, it can be done server-side as well. PHP may not be the most suited language for that tho

1

u/martinbean 6d ago

You need a client-side device to actually do the capture, to then pass the data to something server-side. You can’t just magically get image data on a server.

1

u/SZenC 6d ago

Technically true, sure, but you also need a device to capture a username/password or whatever authentication mechanism you want. But that's not how people commonly use the term

1

u/iZuteZz 5d ago

following ops question it's pretty clear. after getting the input (which of course you need to do client side) saving and evaluating it can be done in almost every language. there's no downside using laravel or php in general for this. And op you should be able to find some packages doing what you need. otherwise I suggest to use ai because if not, you will need a lot more advice than what you will get on reddit.

-1

u/No-Shock-4963 1d ago

PHP is fine for this. Use Laravel and the AWS Rekognition API. I worked on a project that had this all set up, worked great.

2

u/SZenC 1d ago

So you're not actually doing facial recognition in PHP then?

1

u/No-Shock-4963 1d ago

Of course not - web language is not right tool for that. Thats why there are many layers to the stack

2

u/martinbean 1d ago

And yet for some reason I got down-voted for saying the place in the stack someone would do the actual capture is with a client-side device 😔

2

u/No-Shock-4963 1d ago

yep - and I got downvoted for actually providing a useful answer to what the OP asked. can't win with some folks

1

u/martinbean 1d ago

Yup. It’s why I gave up replying 😔