{"id":20323068,"url":"https://github.com/mroblesdev/ticket-php-mysql","last_synced_at":"2025-09-22T23:31:41.724Z","repository":{"id":198377011,"uuid":"700152079","full_name":"mroblesdev/ticket-php-mysql","owner":"mroblesdev","description":"Genera ticket de venta con PHP y MySQL","archived":false,"fork":false,"pushed_at":"2023-10-08T14:22:41.000Z","size":64,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T06:51:14.183Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mroblesdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-04T03:39:58.000Z","updated_at":"2025-01-02T03:28:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"dd8339d8-07a1-40bb-b0d1-535819bc4f3a","html_url":"https://github.com/mroblesdev/ticket-php-mysql","commit_stats":null,"previous_names":["mroblesdev/ticket-php-mysql"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mroblesdev/ticket-php-mysql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mroblesdev%2Fticket-php-mysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mroblesdev%2Fticket-php-mysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mroblesdev%2Fticket-php-mysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mroblesdev%2Fticket-php-mysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mroblesdev","download_url":"https://codeload.github.com/mroblesdev/ticket-php-mysql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mroblesdev%2Fticket-php-mysql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276489716,"owners_count":25651591,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-22T02:00:08.972Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T19:26:17.346Z","updated_at":"2025-09-22T23:31:41.423Z","avatar_url":"https://github.com/mroblesdev.png","language":"PHP","funding_links":["https://www.paypal.com/paypalme/markorobles?locale.x=es_XC."],"categories":[],"sub_categories":[],"readme":"# Genera ticket de venta con PHP y MySQL\n\nEste proyecto muestra la generación de un ticket de venta en PDF con información de una base de datos en MySQL.\n\n## Uso 💻\n\n1. Configuración\n\n   - Descarga el proyecto y copia la carpeta en el htdocs o www de tu servidor web.\n   - Asegúrate de tener una base de datos MySQL llamada 'mi_tienda' con las tablas y datos adecuados. Puedes importar el archivo ```mi_tienda.sql``` proporcionado.\n   - Abre ```conexion.php``` y verifica que los datos de conexión a la base de datos (host, usuario, contraseña y nombre de la base de datos) sean correctos.\n   - Inicia tu servidor web y abre index.php en tu navegador. ```http://localhost/nombre_de_tu_carpeta/index.php```\n\n2. Interacción\n\n   - De forma predefinida el ticket se genera con los datos de la venta con id 1.\n   - Para generar el ticket de otra venta debes enviar el id como argumento, por ejemplo:\n   ```http://localhost/nombre_de_tu_carpeta/index.php?id=5```.\n   - Puedes configurar el símbolo, nombre y decimales de la moneda según el país.\n\n      ```php\n      define('MONEDA', '$');\n      define('MONEDA_LETRA', 'pesos');\n      define('MONEDA_DECIMAL', 'centavos');\n      ```\n\n## Expresiones de Gratitud 🎁\n\n- Comenta a otros sobre este proyecto 📢\n- Invitame una cerveza 🍺 o un café ☕ [Da clic aquí](https://www.paypal.com/paypalme/markorobles?locale.x=es_XC.).\n- Da las gracias públicamente 🤓.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmroblesdev%2Fticket-php-mysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmroblesdev%2Fticket-php-mysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmroblesdev%2Fticket-php-mysql/lists"}