🚀 This project provides developers with a reliable and flexible framework for integrating user data into their applications.
The PHP User Query API retrieves detailed user information using first name and last name. Designed with modern PHP capabilities, this API offers a comprehensive feature set, from proxy configurations to session authentication. 🔒
- User Information Query: Fetch details like TCK, full name, date of birth, and father's name 🗂️
- Secure Queries: Operates with cookie and session authentication mechanisms 🔑
- Proxy Support: Adapts to various network configurations 🌍
- Easy Integration: Quickly integrates into any PHP application ⚡
- PHP 7.4 or later 💻
cURL
extension enabled 🌐
-
Clone or Download the Repository:
git clone https://github.com/finewiki/mariel.api.git
-
Set Up the Cookie File:
Create acookie.txt
file containing cookie information and place it in the root directory of your project. -
Make a Query:
Send a POST request from your application to fetch user information:POST /queryUser Content-Type: application/json { "first_name": "John", "last_name": "Doe" }
-
Access the Data and Enjoy! 🎉
The following example demonstrates how to use the API in a basic PHP application:
<?php
$url = 'https://api.example.com/queryUser';
$data = [
'first_name' => 'John',
'last_name' => 'Doe'
];
$options = [
'http' => [
'header' => "Content-Type: application/json\r\n",
'method' => 'POST',
'content' => json_encode($data),
],
];
$context = stream_context_create($options);
$result = file_get_contents($url, false, $context);
echo $result;
?>
If you'd like to contribute to this project, please check out the contribution guide.
We welcome bug reports, feature suggestions, and contributions to enhance the project.
This project is licensed under the MIT License. For more details, see the LICENSE file.
Feel free to reach out with any questions or suggestions. Happy coding! 🖥️✨