Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

works with angular or nextjs frontend? #98

Closed
agaitan026 opened this issue Jun 15, 2023 · 1 comment
Closed

works with angular or nextjs frontend? #98

agaitan026 opened this issue Jun 15, 2023 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@agaitan026
Copy link

Hello, one question, this works with angular or nextjs frontend?

thank you

@agaitan026 agaitan026 added the question Further information is requested label Jun 15, 2023
@EvilFreelancer
Copy link
Owner

Hello!

Absolutely! You can use this PHP library in conjunction with an Angular or Next.js frontend but... not directly. These JavaScript frameworks run on the client side (in the user's browser) (in case you don't use Next.js in SSR mode), while PHP runs on the server side.

So, the communication between your frontend (Angular/Next.js) and backend (PHP) would typically be done through HTTP requests (like REST or GraphQL API calls) or other similar methods. Your PHP backend would process the requests and send back responses, which your frontend would then interpret and display.

Make sure your PHP backend exposes the necessary functionality of the PHP library you want to use as API endpoints, and then your Angular or Next.js frontend can make requests to these endpoints to use that functionality.

If you are interested in a JavaScript client for MikroTik API, you may want to check out this topic on GitHub here or check MikroNode project.

I hope this helps! Let me know if you have any other questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants