npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

json-php-sql-converter

v1.0.0

Published

Convert JSON into PHP Array or SQL INSERT instantly

Readme

Utilité : Les développeurs manipulent souvent des données JSON reçues d'API ou côté front-end.
Ce convertisseur permet de transformer rapidement ces données en Array PHP ou en SQL pour les bases de données, et inversement, évitant ainsi les erreurs et un travail manuel fastidieux.

Fonctionnement : 1- Collez votre JSON dans la zone prévue 2- Cliquez sur "Generate PHP Array" pour obtenir un array PHP 3- Cliquez sur "Generate SQL INSERT" pour obtenir un INSERT SQL 4- Copiez le résultat facilement grâce au bouton "Copy" 5- Tout se fait localement, aucune donnée n'est envoyée

Astuce :

  • Les strings, nombres et null sont correctement gérés
  • Lors de la génération SQL, le nom de la table vous sera demandé
  • Idéal pour tester ou intégrer rapidement vos données dans vos projets

Technos utilisées : - PHP + Vanilla JavaScript

  • TailwindCSS (CDN)
  • Clipboard.js (CDN)

BadgeCustom

BadgeConvert

Purpose: Developers often work with JSON from APIs or front-end apps.
This tool instantly transforms JSON into PHP arrays or SQL INSERT statements, avoiding manual work and syntax errors.

How it works: 1- Paste your JSON in the input field
2- Click "Generate PHP Array" to get a PHP array
3- Click "Generate SQL INSERT" to get an SQL INSERT statement
4- Copy the result easily with the "Copy" button
5- Everything runs locally, no data is sent anywhere

Tips:

  • Handles strings, numbers, and null automatically
  • Prompts for table name during SQL generation
  • Perfect for testing or integrating data into your projects

Technologies used: - PHP + Vanilla JavaScript

  • TailwindCSS (CDN)
  • Clipboard.js (CDN)

BadgeCustom

BadgeConvert