Fadak.IR Fadak Solutions
English Русский العربية فارسی
Articles Management Studies Language


/ Coumputer / Programming

PHP Training Reference


      Top PHP Projects
         Social Network Platform
         Project Management
      Compare  PHP frameworks
      PHP Scrips
      Leaf Framework
      Fat-Free Micro-Framework
      Environment Variables in Windows for PHP
      Cheatsheet for PHP
      PDO Tutorial - Comparison PDO & MYSQL & MYSQLI
      Online PHP functions
      Algorithm
      include vs. require
      Constructor (مفهوم سازنده)
      Property Visibility
      Best Chart Generation Options with PHP
      Multilingual & Content Negotiation
      RSS Feed and XML
      Remove Specific Class And Attributes From Html Tags
      Encoding and Decoding Encrypted PHP
      Variables & Array
      Как включить логи php
      _custom_check_national_code
      Forms
         formr
         PHP Form Builder

Top PHP Projects

Social Network Platform

WoWonder - The Ultimate PHP Social Network Platform by DoughouzForest

Project Management

Rise CRM

Perfex CRM

 

Compare  PHP frameworks

GitHub - myaaghubi/PHP-Frameworks-Bench: A library to make benchmarks from PHP frameworks.

Laravel, Symfony, Yii, CodeIgniter, CakePHP - Анализ - Google Trends

آموزش yii framework 2 - مکتب خونه

The Best PHP Frameworks for Web Development
1. Laravel
2. CodeIgniter
3. Symfony
4. Zend
5. Yii
6. CakePHP
Other: Laravel, Symfony, CodeIgniter, CakePHP, Phalcon, Yii 2, Zend Framework, FuelPHP, Slim, PHPixie

Yii:
— Yii2 популярен только в РФ (снг с трендом спада), устаревший и велосипедный местами
— более популярный, специалистов больше.
— есть много наработок, готового кода и т.д.
— разработка быстрее, но менее гибкая.
CodeIgniter:
— это микрофреймворк, по этому есть большая гибкость в разработке.
— по той же причине разработка дольше, хотя если сайт не сложный Вы этого не почувствуете.
— после возрождения CodeIgniter очень быстро развивается (по крайней мере так говорят).

PHP Scrips

Codecanyon Official

Codecanyon Official - Laravel

Codecanyon Official - Codeigniter

Codecanyon Official - Yii

Codecanyon Official - Symfony

Codecanyon Official - Node.js

Codecanyon Official - Reactjs

Codecanyon Official - Angular JS

Codecanyon Official - .Net 4.5

Codecanyon Official - JQuery

https://codecanyon.net/attributes/compatible-with/swift

https://codecanyon.net/attributes/compatible-software/other

https://codecanyon.net/attributes/software-framework/cakephp

https://codecanyon.net/attributes/compatible-software/flutter%203.x

https://codecanyon.net/attributes/compatible-software/flutter%202.x

Nulleb

Codelist

saasworthy

Freshcode

Leaf Framework

Introduction | Leaf PHP

Leaf PHP Framework - YouTube

Fat-Free Micro-Framework

Fat-Free Framework for PHP

Environment Variables in Windows for PHP

Environment variables in Windows are queued by percent (%) characters.
%appdata%
%temp%
%userprofile%
%homepath%

Edit the system environment variables:

rundll32 sysdm.cpl,EditEnvironmentVariables

Environment variables -> New ...
in command line
echo %PATH%
php -S localhost:4000
New Folder "www" in C:\Users\nameuser
In browser "http://localhost:4000/www/"

$phrase = "Giraffe Academy";
$phrase[0] = "B";
echo $phrase; // Biraffe Academy

$num = 10;
$num --;
echo $num;

if($phrase && $num)

if($phrase || $num)

Working with strings in PHP

 

Introduction

 

error_reporting(0);
set_time_limit (0);
Print Array
print_r

 

$a = array ('a' => 'apple', 'b' => 'banana', 'c' => array ('x', 'y', 'z'));
print_r ($a);

 

print_r — Prints human-readable information about a variable
var_dump

 

$a = array(1, 2, array("a", "b", "c"));
var_dump($a);

 

var_dump — Dumps information about a variable
var_export

 

$a = array (1, 2, array ("a", "b", "c"));
var_export($a);

 

var_exportOutputs or returns a parsable string representation of a variable

$text= strip_tags($text, '');

کار با تگ‌ها در HTML

$dom = new DomDocument;
$dom->loadHTML($text);
$dom->preserveWhiteSpace = false;
$divs = $dom->getElementsByTagName('dd');
foreach ($divs as $div) {
echo $ii += 1;
    echo $div->nodeValue . "\n";
}

Create array from the contents of

tags in php - Stack Overflow

  DOMDocument (with DOMXPath) 

Cheatsheet for PHP

PHP Arithmetic Operations :: pow() Cheatsheet for PHP 7.2.0

HTML Cheat Sheet | OverAPI.com

BlueShoes: PHP Cheat Sheet

20 Must Have PHP Cheat Sheet for Every Developers

PDO Tutorial - Comparison PDO & MYSQL & MYSQLI

Introduction to PHP PDO

PHP MySQL: Querying Data from Database

Select Statements with PDO – Must Be Built

Online PHP functions

Online strip_tags() function - Online PHP functions

PHP Online Function Tester

OnlinePHPFunctions - Test PHP functions online

PHPTESTER - Test PHP code online

execute PHP online - functions-online (русский)

PHP Functions Online - WritePHPOnline

PHP Functions – Quickly test PHP calls within your browser

Algorithm

Category:Trees (graph theory) - Wikipedia

n-ary-tree Archives - GeeksforGeeks

Depth of an N-Ary tree - GeeksforGeeks

Number of children of given node in n-ary Tree - GeeksforGeeks

Decision tree learning - Wikipedia

N  Ary Trees Data Structures - Stack Overflow

Brodal queue - Wikipedia

Number of children of given node in n-ary Tree - GeeksforGeeks

K-ary Heap - GeeksforGeeks

k-ary tree - Wikipedia

include vs. require

در صورت عدم وجود فایل مورد نظر برای فراخوانی:

فرمان include فقط یک warning می‌دهد و بقیه کد‌ها را می‌خواند اما فرمان require یک error می‌دهد و آن صفحه موقف می‌شود.

Constructor (مفهوم سازنده)

در php متد سازنده یک کلاس با نام _construct مشخص می‌شود. اغلب برنامه نویسان از این متد برای عملیاتی همانند مقدار دهی اولیه خاصیت‌های شی استفاده می‌کنند. درصورتی که در یک کلاس متد سازنده تعریف شده باشد به هنگام ایجاد یک شی از کلاس،متد سازنده آن به طور خود کار فراخوانی خواهد شد.یک متد سازنده می‌تواند آرگومانهایی را نیز دریافت کند و براساس آن عملیات مقدار دهی اولیه را انجام دهد.

سازنده نوع به خصوصی از یک متد در کلاس می‌باشد و زمانی که نمونه‌ای از کلاس ایجاد شود، به صورت خودکار فراخوانی می‌گردد. سازنده برای مقدار دهی اولیه شی و تخصیص حافظه به یک کلاس مورد استفاده قرار می‌گیرد. زمانی که نمونه یا شیئ‌ای از کلاس ایجاد شود، فیلدهای خصوصی(Private) کلاس نیز مقداردهی اولیه می‌شوند. وقتی که ما سازنده را برای کلاس ایجاد نکنیم، کامپایلر به صورت اتوماتیک، یک سازنده پیش فرض برای کلاس ایجاد می‌کند. نام سازنده همیشه هم نام کلاس است.

مفهوم سازنده (Constructor)

انواع سازنده‌ها
-سازنده پیش فرض(Default)
-سازنده پارامتردهی شده (Parameterized)
-سازنده ایستا(Static)
-سازنده خصوصی (Private)
سازنده پیش فرض(Default)
به سازنده‌ای می‌گویند که هیچ نوع پارامتری برای آن تعریف نشده باشد به عبارت دیگر بدون پارامتر است. این سازنده مقادیر مشابه در هر نمونه(instance) از کلاس را مقدار دهی می‌کند.
سازنده پارامتردهی شده (Parameterized)
سازنده‌ای است که حداقل یک پارامتر دارد. با استفاده از این نوع سازنده می‌توانیم هر نمونه از کلاس را با مقادیر متفاوت مقدار دهی کنیم.
سازنده ایستا(Static)
سازنده استاتیک برای مقدار دهی هر نوع داده استاتیک از کلاس یا انجام هر عملی(متد) که باید یک بار اجرا شود، مورد استفاده قرار می‌گیرد. سازنده استاتیک به صورت خودکار و قبل از اولین نمونه سازی از کلاس یا هر داده استاتیک فراخوانی می‌شود. این سازنده یک بار برای هر تعداد نمونه کلاس ایجاد می‌شود.

نکات کلیدی سازنده استاتیک
تنها یک سازنده استاتیک می‌تواند در کلاس ایجاد شود.
سازنده استاتیک هیچ نوع پارامتری نمی‌گیرد زیرا به طور خودکار توسط CLR یا access modifier فراخوانی می‌شود.
این سازنده به طور خودکار و قبل از اینکه اولین نمونه کلاس ایجاد شود فراخوانی می‌شود.
نمی توان سازنده استاتیک را به طور مستقیم فراخوانی کرد.
چه زمانی از سازنده استاتیک استفاده می‌شود؟
سازنده استاتیک زمانی که کلاس‌های wrapper را برای کدهای مدیریت نشده ایجاد می‌کنید مورد استفاده قرار می‌گیرد. همچنین می‌توانید آن را زمانی که از فایل Log استفاده می‌کنید مورد استفاده قرار دهید و سازنده برای نوشتن ورودی‌ها بکار گرفته شود.
سازنده خصوصی (Private)
سازنده Private یک سازنده به خصوص است که به طور کلی در کلاسی مورد استفاده قرا می‌گیرد که فقط شامل تنها اعضای استاتیک باشد. اگر کلاسی فقط سازنده خصوصی داشته و هیچ نوع سازنده عمومی نداشته باشد در این حالت، امکان ایجاد نمونه جدید از کلاس وجود ندارد. در واقع private constructor از ایجاد نمونه سازی کلاس جلوگیری می‌کند. اما اگر بخواهید یک نمونه از کلاسی ایجاد کنید که سازنده خصوصی دارد، باید یک سازنده عمومی همراه با سازنده خصوصی ایجاد کنید.

آموزش متد جادویی construct

Property Visibility

public: در همه جا

protected: تنها در کلاس‌های فرزند قابل فراخوانی

private: تنها در کلاس اصلی قابل دسترس

PHP: Visibility - Manual

شی گرایی در PHP و سطوح دسترسی و ارث بری - هیتوس

MegaWeb| تفاوت بین public، private و protected در php

Best Chart Generation Options with PHP

PHP Line Charts & Graphs | CanvasJS

PHP Charts & Graphs - FusionCharts

4 Best Chart Generation Options with PHP Components — SitePoint

Multilingual & Content Negotiation

Content Negotiation in CodeIgniter 4 - New Myth Media Blog

Docs: hreflang & Content Language Tags | TechnicalSEO.com

seo - How to make Google recognize language for a multilingual website? - Webmasters Stack Exchange

language detection by subdomain

PHP Master | Multi-Language Support in CodeIgniter

GitHub - waqleh/codeigniter-language-in-url-internationalization: Language in URL:

RSS Feed and XML

Build an RSS 2.0 Feed with CodeIgniter

Article Central RSS

GitHub - Mitaka777/ci-sitemap: A simple sitemap generator for CodeIgniter

CodeIgniter Forums - Best Way To Add Sitemap

frameworks - Sitemap generation with Codeigniter - Stack Overflow

Remove Specific Class And Attributes From Html Tags

HTML Sanitizer: Remove unsafe tags and attributes from HTML code - PHP Classes

HTML Purifier Live Demo

How To Remove Specific Class And Attributes From Html Tags Using PHP?

Encoding and Decoding Encrypted PHP

Hash: online hash value calculator

CrackStation - Online Password Hash Cracking - MD5, SHA1, Linux, Rainbow Tables, etc.

Variables & Array

Passing variables to all views.

PHP array_push() Append Elements to an Array -- EndMemo

CodeIgniter Forums - How to store array values in a foreach loop

arrays - CodeIgniter: global variables in a controller - Stack Overflow

Как включить логи php

Включить логи php с помощью файла .htaccess, простой вариант:

php_value display_errors on
php_value display_startup_errors on

Включить логи php с помощью файла .htaccess, расширенный вариант:

php_flag ignore_repeated_errors off
php_flag ignore_repeated_source off
php_flag track_errors on
php_flag display_errors on
php_flag display_startup_errors on
php_flag log_errors on
php_flag mysql.trace_mode on
php_value error_reporting -1
php_value error_log /path/to/site/php-errors.log

Таким образом ошибки php будут выводиться на экран, а также логироваться в файл php-errors.log
Вывод ошибок прямо из php скрипта:

ini_set("display_errors","1");
ini_set("display_startup_errors","1");
ini_set('error_reporting', E_ALL);

Включить логи php изменив php.ini

error_reporting = E_ALL
display_errors = On
display_startup_errors = On
log_errors = On
log_errors_max_len = 1024
error_log = /var/log/php-errors.log

ساخت ربات تلگرام با 10 خط کُد PHP! - بات چین botchain.ir

In Memory Data Management and Analysis

Thanks for your reply but I'm still having this issue. :exclamation:
It is intended to display on one page five languages simultaneously in the view.

:idea: for example "$request->setLocale('ru')". This command only works in the control.

We need to run this command or same code in the view for switch languages concurrently.
контрабандный

To display different currency, it is predesignated to be used in the view as the third parameter to the lang() method, but we want to return the string by the language key in many languages.

For example, similar to the currency as the third parameter:
https://codeigniter4.github.io/userguide/outgoing/localization.html?highlight=language#specifying-locale

Awesome PHP

Inspired by ziadoz/awesome-php

Inspired by codeigniter-id/awesome-codeigniter

A curated list of amazingly awesome PHP libraries, resources and shiny things.

Contributing and Collaborating

Please see CONTRIBUTING, CODE-OF-CONDUCT and COLLABORATING for details.

Composer Repositories

Composer Repositories.

Dependency Management

Libraries for dependency and package management.

Dependency Management Extras

Extras related to dependency management.

Frameworks

Web development frameworks.

Framework Extras

Extras related to web development frameworks.

Content Management Systems (CMS)

Tools for managing digital content. Backdrop - A CMS targeting small-to-medium sized business and non-profits (a fork of Drupal). Concrete5 - A CMS targeting users with a minimum of technical skills. Drupal - An enterprise level CMS. Grav - A modern flat-file CMS. Joomla - Another leading CMS. Magento - The most popular ecommerce platform. Pico CMS - A stupidly simple, blazing fast, flat file CMS. WordPress - A blogging platform and CMS. * Moodle - An open-source learning platform.

Components

Standalone components from web development frameworks and development groups.

Micro Frameworks

Micro frameworks and routers.

Micro Framework Extras

Extras related to micro frameworks and routers.

Routers

Libraries for handling application routing.

Templating

Libraries and tools for templating and lexing.

Static Site Generators

Tools for pre-processing content to generate web pages.

HTTP

Libraries for working with HTTP.

Scraping

Libraries for scraping websites.

Middlewares

Libraries for building application using middlewares.

URL

Libraries for parsing URLs.

Email

Libraries for sending and parsing email.

Files

Libraries for file manipulation and MIME type detection.

Streams

Libraries for working with streams.

Dependency Injection

Libraries that implement the dependency injection design pattern.

Imagery

Libraries for manipulating images.

Testing

Libraries for testing codebases and generating test data.

Continuous Integration

Libraries and applications for continuous integration.

Documentation

Libraries for generating project documentation.

Security

Libraries for generating secure random numbers, encrypting data and scanning and testing for vulnerabilities.

Passwords

Libraries and tools for working with and storing passwords.

Code Analysis

Libraries and tools for analysing, parsing and manipulating codebases.

Code Quality

Libraries for managing code quality, formatting and linting.

Static Analysis

Libraries for performing static analysis of PHP code.

Architectural

Libraries related to design patterns, programming approaches and ways to organize code.

Debugging and Profiling

Libraries and tools for debugging errors and profiling code.

Build Tools

Project build and automation tools.

Task Runners

Libraries for automating and running tasks.

Navigation

Tools for building navigation structures.

Asset Management

Tools for managing, compressing and minifying website assets.

Geolocation

Libraries for geocoding addresses and working with latitudes and longitudes.

Date and Time

Libraries for working with dates and times.

Event

Libraries that are event-driven or implement non-blocking event loops. Amp - An event driven non-blocking I/O library. Broadway - An event source and CQRS library. CakePHP Event - An event dispatcher library. Elephant.io - Yet another web socket library. Evenement - An event dispatcher library. Event - An event library with a focus on domain events. Hoa EventSource - An event source library. Hoa WebSocket - Another web socket library. Prooph Event Store - An event source component to persist event messages PHP Defer - Golang's defer statement for PHP. Ratchet - A web socket library. ReactPHP - An event driven non-blocking I/O library. RxPHP - A reactive extension library. Swoole - An event-driven asynchronous and concurrent networking communication framework with high performance for PHP written in C. * Workerman - An event driven non-blocking I/O library.

Logging

Libraries for generating and working with log files.

E-commerce

Libraries and applications for taking payments and building online e-commerce stores.

PDF

Libraries and software for working with PDF files.

Office

Libraries for working with office suite documents.

Database

Libraries for interacting with databases using object-relational mapping (ORM) or datamapping techniques.

Migrations

Libraries to help manage database schemas and migrations.

NoSQL

Libraries for working with "NoSQL" backends.

Queue

Libraries for working with event and task queues.

Libraries and software for indexing and performing search queries on data.

Command Line

Libraries related to the command line.

Authentication and Authorization

Libraries for implementing user authentication and authorization.

Markup

Libraries for working with markup.

Strings

Libraries for parsing and manipulating strings.

Numbers

Libraries for working with numbers.

Filtering and Validation

Libraries for filtering and validating data.

API

Libraries and web tools for developing APIs.

Caching

Libraries for caching data.

Data Structure and Storage

Libraries that implement data structure or storage techniques.

Notifications

Libraries for working with notification software.

Deployment

Libraries for project deployment.

Internationalisation and Localisation

Libraries for Internationalization (I18n) and Localization (L10n).

Serverless

Libraries and tools to help build serverless web applications.

Configuration

Libraries and tools for configuration.

Third Party APIs

Libraries for accessing third party APIs.

Extensions

Libraries to help build PHP extensions.

Miscellaneous

Useful libraries or tools that don't fit in the categories above.

Software

Software for creating a development environment.

PHP Installation

Tools to help install and manage PHP on your computer.

Development Environment

Software and tools for creating a sandboxed development environment.

Virtual Machines

Alternative PHP virtual machines.

Text Editors and IDEs

Text Editors and Integrated Development Environments (IDE) with support for PHP.

Web Applications

Web-based applications and tools.

Infrastructure

Infrastructure for providing PHP applications and services.

Resources

Various resources, such as books, websites and articles, for improving your PHP development skills and knowledge.

PHP Websites

Useful PHP-related websites.

Other Websites

Useful websites related to web development.

PHP Books

Fantastic PHP-related books.

Other Books

Books related to general computing and web development.

PHP Videos

Fantastic PHP-related videos.

PHP Podcasts

Podcasts with a focus on PHP topics.

PHP Reading

PHP-releated reading materials.

PHP Internals Reading

Reading materials related to the PHP internals or performance.

PHP Magazines

Fantastic PHP-related magazines.

 

_custom_check_national_code

قطعه کد چک صحت کد ملی در PHP

//function _custom_check_national_code($code)
//{
// if(!preg_match('/^[0-9]{10}$/',$code))
// return false;
// for($i=0;$i<10;$i++)
// if(preg_match('/^'.$i.'{10}$/',$code))
// return false;
// for($i=0,$sum=0;$i<9;$i++)
// $sum+=((10-$i)*intval(substr($code, $i,1)));
// $ret=$sum%11;
// $parity=intval(substr($code, 9,1));
// if(($ret<2 && $ret==$parity) || ($ret>=2 && $ret==11-$parity))
// return true;
// return false;
//}

Forms

formr

GitHub - formr/formr: Create and Validate PHP Forms in Seconds.

PHP Form Builder

  1. PHP Form Builder - HTML Form Generator with Drag & drop
  2. drag-n-drop-form-builder
  3. Json to Form in file: /phpformbuilder/drag-n-drop-form-builder/ajax/get-code.php
  4. Remove Licence with
  5. //<script> $('#fg-form').find('div').first().remove(); $('#fg-form').attr('action', 'form2.php');</script>

 

 

 


Articles
Digital Media
Humanities
IT Management
Coumputer
Miscellaneous
Product & Services
About Fadak
Management
Contemporary Management Journal
Managerial Verses
Photography Quotes
Photo is written
Management Researcher Bank
Management articles titles
Educational Resources (Seminary & University)
Studies
Observatory - Personalities
Observatory - Cultural
Observatory - Academic
Observatory - Media
Observatory - scientific events
Language
Dictionary
Russian Language Test
Russian Proverb
English Proverb
Four language sentences
logo-samandehi
About | Contact With Us | Privacy Policy | Terms | Cookies Policy |
Version (Pre-Alpha) 2000-2022 CMS Fadak. ||| Version : 5.2 ||| By: Fadak Solutions Old Version