PM SURYA GHAR VENDOR DATA MANAGER (PHP) WHAT THIS APP DOES - Enter state and district names. - Calls the configured vendor API from PHP (server-side). - Displays returned vendor records in a searchable table. - Exports every fetched record to .xlsx (not only filtered/visible rows). IMPORTANT: API CONFIGURATION IS NOT COMPLETE YET The response file shared in chat shows a root JSON array with 1,346 entries and fields including: id, vendorId, vendorName, previousVendorName, ... But the exact getVendorByStateDistrict Request URL, Request Method, and Payload keys were not supplied. Therefore live fetching will not work until api_config.php is configured with those exact details. INSTALL 1. Upload/extract this folder to a PHP hosting account (PHP 8.0+ recommended). 2. Ensure PHP cURL extension is enabled. 3. Open index.php in a browser. 4. Edit api_config.php: - endpoint: exact Request URL for getVendorByStateDistrict (NOT the /authenticate/OAuth/t/g URL) - method: exact GET or POST shown in Network > Headers - payload: exact keys and values from Network > Payload; use {{STATE}} and {{DISTRICT}} where values should be entered by the user. - bearer_token: only if required and obtained through an authorized supported authentication flow. Tokens expire; do not hard-code a temporary browser token in a public deployment. - response_path: leave blank if response is a root array. If nested, enter its dot path, e.g. data.vendors. PAYLOAD EXAMPLE ONLY (NOT CONFIRMED FOR THIS PORTAL): 'payload' => [ 'stateName' => '{{STATE}}', 'districtName' => '{{DISTRICT}}', ], SECURITY - Do not share or publish Authorization headers, access tokens, cookies, or personal credentials. - Use only data and API access permitted by the portal's terms and applicable rules. - Do not attempt to bypass authentication, rate limits, or access controls. - Keep api_config.php protected from public download on production hosting (ideally move secrets outside the web root). EXCEL Excel export uses SheetJS from a CDN. It exports all records fetched from the API, including rows hidden by the table search filter.