Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Epsilon snippetsNew to Visual Studio Code? Get it now.
Epsilon snippets

Epsilon snippets

stnslski

|
2 installs
| (0) | Free
Snippets for PHP
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

🧩 Epsilon Snippets – PHP MySQLi (Procedural)

Epsilon Snippets is a Visual Studio Code extension that provides ready-to-use PHP snippets for working with MySQL databases using the procedural MySQLi approach — no OOP, no unnecessary complexity.

Perfect for developers who prefer clean, straightforward PHP with mysqli_* functions.


🚀 Installation

  1. Open Visual Studio Code
  2. Go to the Extensions view (Ctrl+Shift+X)
  3. Search for: Epsilon Snippets
  4. Click Install

⚙️ Usage

  1. Open any .php file
  2. Start typing a snippet prefix (e.g., mysqli-conn)
  3. Select the suggestion from the autocomplete menu
  4. Press Tab or Enter to insert the snippet

📋 Available Snippets

Prefix Description
mysqli-conn Connect to a MySQL database (procedural)
mysqli-query Run a SELECT query and loop through results
mysqli-insert Insert data into a table
mysqli-prepare-select Use a prepared SELECT statement (procedural)
mysqli-close Close the MySQL connection

💡 Example

Typing mysqli-query generates:

$sql = "SELECT * FROM table";
$result = mysqli_query($conn, $sql);
if (mysqli_num_rows($result) > 0) {
    while($row = mysqli_fetch_assoc($result)) {
        echo "Column: " . $row["column"] . "<br>";
    }
} else {
    echo "0 results";
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft