Bhanu K.
asked 01/21/22I want to create App
Hello Sir and Madam I purchased and modified A PhP ( Laravel Scripts) .I wan to Create app of that Please Help me.
I Created Frontend Of App in Flutter But I don't Know How to Connect My PHP Script into this flutter app.
Actually My Means is How to create modern app of My Php Script .
Please Help its Urgent.
2 Answers By Expert Tutors
Rize S. answered 03/23/23
Senior IT Certified Trainer, IT Developer & DBA Administrator
To connect your PHP script to your Flutter app, you will need to create an API (Application Programming Interface) that can handle requests from your app and return the appropriate responses.
Here are the basic steps you can follow:
- Create API endpoints in your PHP script to handle the requests from your Flutter app. You can use popular PHP frameworks like Laravel, Symfony, or CodeIgniter to make this process easier.
- Write functions in your Flutter app to make HTTP requests to your API endpoints. You can use the built-in Dart http package or other third-party packages like Dio or Retrofit.
- Parse the responses from the API in your Flutter app and use the data to update the UI.
Here are some resources that can help you get started:
- How to Create a REST API with Laravel: https://laravel.com/docs/8.x/api-resources
- Flutter HTTP Requests and REST API: https://flutter.dev/docs/cookbook/networking/fetch-data
- Flutter HTTP Networking Libraries: https://pub.dev/packages?q=http
It's important to note that securing your API is also important. You may want to consider adding authentication or using HTTPS to protect your app and your users' data.

Debi S. answered 03/08/22
20+ years Web Developer using PHP in an active production environment.
Without knowing the specifics of the PHP script that you want to connect, only a general answer can be given. I'm guessing that the PHP script allows for CRUD activities within a database. I can point you to a link that may be helpful: https://medium.com/app-dev-community/flutter-crud-application-using-php-rest-api-bb585c4d7d9c
If nothing else, it will help with the understanding of what you need to do to allow PHP to power your app. Good Luck!
Still looking for help? Get the right answer, fast.
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.
Diana C.
Hello i can help you02/19/22