Skip to content

Instantly share code, notes, and snippets.

View tuannguyen29's full-sized avatar
🏢
on coding

Tuan Nguyen tuannguyen29

🏢
on coding
View GitHub Profile

PHP Developer Việt Nam Community

Chú ý

Để tránh việc bị ban, kick hoặc bị xoá bài, bình luận mà không biết nguyên nhân tại sao, các dev nên đọc kỹ nội quy nhóm trước khi tham gia.

Thông tin nhóm

PHP Developer Việt Nam Community là nhóm cộng đồng dành cho những bạn yêu mến ngồn ngữ lập trình PHP nói chung và các PHP Framework nói riêng.

@tuannguyen29
tuannguyen29 / php-style-guide.md
Created April 13, 2022 02:55 — forked from ryansechrest/php-style-guide.md
PHP style guide with coding standards and best practices.

PHP Style Guide

All rules and guidelines in this document apply to PHP files unless otherwise noted. References to PHP/HTML files can be interpreted as files that primarily contain HTML, but use PHP for templating purposes.

The keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

Most sections are broken up into two parts:

  1. Overview of all rules with a quick example
  2. Each rule called out with examples of do's and don'ts

@charset "UTF-8";

/*!
 * animate.css - https://animate.style/
 * Version - 4.1.1
 * Licensed under the MIT license - https://opensource.org/licenses/MIT
 *
 * Copyright (c) 2021 Animate.css
@tuannguyen29
tuannguyen29 / php_mongodb.md
Last active December 6, 2019 01:42
MongoDB PHP Library

MongoDB PHP Library

Install

PHP extension

Để sử dụng được MongoDB PHP Library cần cài đặt MongoDB PHP Driver. Chọn cách cài đặt phù hợp với flatform ở đây

  • Cài đặt cho wamp bằng cách tải PHP extension php_mongodb.dll.
  • Rồi thêm vào php.ini:
@tuannguyen29
tuannguyen29 / research_mongo.md
Last active November 16, 2024 08:10
Tìm hiểu MongoDB + Mongo Shell

Cài đặt Mongo trên Windows

  1. Download trên trang chủ Mongo, chọn phiên bản phù hợp tại đây.

    Ở đây mình chọn version 4.2.1 (current release). OS: Windows x64 x64.

  2. Sau khi tải về thì chạy file .msi để cài đặt.

    • Cài đặt MongoDB trên Windows như service. Nghĩa là mỗi khi khởi động PC, nó sẽ chạy ngầm như một service trên windows.

    • Sẽ có 2 tuỳ chọn. Ở đây sẽ chọn Run service as Network Service user để kết nối với MongoDB trong tất cả network.

  • emmet     + Emmet hỗ trợ viết code nhanh cho HTML và CSS dựa trên snippets (những đoạn mã dựng sẵn cho việc tái sử dụng nhiều lần).
  • All autocomplete
  • emmet css Nó là công cụ để cho dev sinh code nhanh hơn. Ví dụ: http://docs.emmet.io/cheat-sheet/
  • bootstrap 3 snippet
  • sublime linter     + sublime linter php         ++ phpintel         ++ phpsnippet