Skip to content

Instantly share code, notes, and snippets.

View fayzasalman's full-sized avatar
💭
I may be slow to respond.

Fayza fayzasalman

💭
I may be slow to respond.
View GitHub Profile
@fayzasalman
fayzasalman / MacOS-Xampp-Instalation-Guide.md
Created April 12, 2025 14:39 — forked from Udara-Dananjaya/MacOS-Xampp-Instalation-Guide.md
macOS XAMPP Installation and Composer Setup Guide

Step-by-step instructions for installing XAMPP, configuring paths, and installing Composer on macOS:

Install XAMPP:

  1. Go to XAMPP download page and download the DMG file.
  2. Open the downloaded DMG file.
  3. Press F4 and search for "Privacy and Security."
  4. In the "Security" section, you'll find the blocked app. Click "Open Anyway" to continue with the installation.
  5. Start the XAMPP services.
<p align="center">
<img src="https://profile-counter.glitch.me/faeza97/count.svg" />
</p>
![](https://komarev.com/ghpvc/?username=faeza97&color=blue)
@fayzasalman
fayzasalman / traversing-example.md
Created April 8, 2021 15:57 — forked from etrepat/traversing-example.md
Traversing the Hierarchy Tree with Baum - An Example

The simplest way to traverse the hierarchy tree with Baum is by iterating through the children relation.

<?php

$root = Category::roots()->with('children')->first();

echo "<h3>{$root->name}</h3>";

foreach($root->children as $category) {

Conventinal Commit Messages

See how a minor change to your commit message style can make a difference. Examples

Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs

Commit Formats

Default

@fayzasalman
fayzasalman / pdocrash.php
Created October 21, 2020 09:25 — forked from bradtraversy/pdocrash.php
PDO & Prepared Statements Snippets
<?php
$host = 'localhost';
$user = 'root';
$password = '123456';
$dbname = 'pdoposts';
// Set DSN
$dsn = 'mysql:host='. $host .';dbname='. $dbname;
// Create a PDO instance