Giter VIP home page Giter VIP logo

Comments (4)

ocram avatar ocram commented on June 18, 2024

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.

vbmark avatar vbmark commented on June 18, 2024

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.

ocram avatar ocram commented on June 18, 2024

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.

vbmark avatar vbmark commented on June 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.