Comments (4)
The server-side part should be covered fairly well with the examples from the README, right? So that shouldn’t be too complex or leave open too many questions.
As for the client-side part, the README doesn’t really provide anything, that’s right. But that’s because it’s highly dependent on what client-side technologies or frameworks you are using, and this library should be usable with whatever you use on the front-end side.
What would you suggest? That the README provides examples for the front-end part for these forms for a variety of popular frameworks and technologies? Or that we provide a plain HTML form example for every action?
from php-auth.
Yes, the server side documentation is great.
If there were, "...examples for the front-end part for these forms for a variety of popular frameworks and technologies" that would be great too but I know that's a big ask.
Even if you went completely opinionated and picked one, like a simple bootstrap boilerplate with JavaScript, or whatever you would enjoy building around, seeing how well you did the server-side code I'm sure that whatever you went with would be a great basis upon which others could build.
But if that doesn't sound appealing then plain HTML form examples would be greatly appreciated also.
Thank you.
from php-auth.
So I don’t know if it would be helpful to provide boilerplates for the forms for React or Vue or any front-end framework. But either Bootstrap or plain HTML could be done and may provide some value.
For example, if we had the following boilerplate:
<form action="/login" method="post">
<input type="text" name="username" placeholder="Username" />
<input type="text" name="password" placeholder="Password" />
<input type="checkbox" name="remember" value="1" />
<button type="submit">Log in</button>
</form>
… but not just for the login with a username, but for every single action or task – would you consider that helpful? I mean, you would probably still need to change a lot there (target URL, field names, translations, CSS classes, HTML elements, etc.). But maybe it would still help, I don’t know.
from php-auth.
I found this: https://github.com/schnoog/PHPBoilerPlate
It's a little old but seems to work fine for what I'm looking for. Maybe link to it as a starting point, or fork it and update it if needed.
from php-auth.
Related Issues (20)
- How do I remember the user after calling admin()->logInAsUserById? HOT 1
- Compatibility with Redis for User Sessions
- Random User Logout and Cookie Anomalies HOT 4
- $auth->forgotPassword creates fatal error HOT 2
- Use PHPAuth for a REST API ? HOT 1
- InvalidSelectorTokenPairException on every attempt to change password HOT 7
- periods in email addresses HOT 2
- Is compatible with php 8.1 ? HOT 2
- [php 8.2.4] - Deprecated: Automatic conversion of false to array is deprecated / multi-projects
- oAuth2 + PHP-auth implementation HOT 1
- The best way to send a re-confirmation email? HOT 5
- Encryption of PII HOT 1
- More documentation is required
- session is empty after redirect HOT 7
- Why use selector/token pair for password reset? HOT 1
- [Question] Logout everywhere after password reset. HOT 1
- comma too many in PostgreSQL setup HOT 1
- use a SCHEMA for database tables HOT 1
- composer update - undefined method: isWaitingForSecondFactor() HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-auth.