Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bengali translations added #989

Open
wants to merge 27 commits into
base: gh-pages
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
486297d
Update 01-01-01-Getting-Started.md
Shohan494 Jan 26, 2021
ee17202
Update 01-01-01-Getting-Started.md
Shohan494 Jan 26, 2021
9d70d49
Update 01-02-01-Use-the-Current-Stable-Version.md
Shohan494 Jan 26, 2021
bd5d093
Update 01-02-01-Use-the-Current-Stable-Version.md
Shohan494 Jan 26, 2021
26b3e29
Update 01-02-01-Use-the-Current-Stable-Version.md
Shohan494 Jan 26, 2021
5eeee42
Update 01-02-01-Use-the-Current-Stable-Version.md
Shohan494 Jan 26, 2021
3633cc1
Update 01-02-01-Use-the-Current-Stable-Version.md
Shohan494 Jan 26, 2021
6a60b36
Update 01-02-01-Use-the-Current-Stable-Version.md
Shohan494 Jan 26, 2021
0cb21d8
Update 01-03-01-Built-in-Web-Server.md
Shohan494 Jan 26, 2021
0c24d94
Update 01-04-01-Mac-Setup.md
Shohan494 Jan 26, 2021
a9b6d05
Update 01-04-01-Mac-Setup.md
Shohan494 Jan 26, 2021
5e0af4e
Update welcome.md
Shohan494 Jan 26, 2021
c3fd4d2
Update welcome.md
Shohan494 Jan 26, 2021
e712f82
Update welcome.md
Shohan494 Jan 26, 2021
b905132
Update 01-04-01-Mac-Setup.md
Shohan494 Jan 26, 2021
086bf41
Update 01-04-01-Mac-Setup.md
Shohan494 Jan 27, 2021
a53da08
Update 01-04-01-Mac-Setup.md
Shohan494 Jan 27, 2021
d9a77c6
Update 01-04-01-Mac-Setup.md
Shohan494 Jan 27, 2021
0aca784
Update 03-04-01-Standard-PHP-Library.md
Shohan494 Jan 27, 2021
cf2315d
Update 03-04-01-Standard-PHP-Library.md
Shohan494 Jan 27, 2021
2da5a27
Update 17-04-01-Elephpants.md
Shohan494 Jan 27, 2021
3ea87d7
Update 06-02-01-Basic-Concept.md
Shohan494 Jan 28, 2021
7626546
Update 06-02-01-Basic-Concept.md
Shohan494 Jan 28, 2021
b796744
Update 06-02-01-Basic-Concept.md
Shohan494 Jan 28, 2021
5d0cfd4
Update 13-01-01-Virtualization.md
Shohan494 Jan 28, 2021
6a7dd96
Update 05-02-01-The-Basics.md
Shohan494 Feb 5, 2021
fd2e0b2
Update 17-03-01-Conferences.md
Shohan494 Feb 7, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 10 additions & 20 deletions _includes/welcome.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,14 @@
# Welcome
# স্বাগতম

There's a lot of outdated information on the Web that leads new PHP users astray,
propagating bad practices and insecure code. _PHP: The Right Way_ is an easy-to-read,
quick reference for PHP popular coding standards, links to authoritative tutorials
around the Web and what the contributors consider to be best practices at the present
time.
ওয়েবে প্রচুর পুরানো তথ্য রয়েছে যা নতুন পিএইচপি ব্যবহারকারীদের ভুল পথে চালিত করে, খারাপ অনুশীলন এবং অসুরক্ষিত কোড প্রচার করে। _PHP: The Right Way_ হচ্ছে সহজেই পঠনযোগ্য, পিএইচপি জনপ্রিয় কোডিং স্ট্যান্ডার্ডগুলির দ্রুত রেফারেন্স, ওয়েবে কর্তৃত্বমূলক টিউটোরিয়ালের লিঙ্ক এবং যা অবদানকারীরা বর্তমান সময়ে সেরা অনুশীলন হিসাবে বিবেচনা করে।

_There is no canonical way to use PHP_. This website aims to introduce new PHP
developers to some topics which they may not discover until it is too late, and aims
to give seasoned pros some fresh ideas on those topics they've been doing for years
without ever reconsidering. This website will also not tell you which tools to use, but
instead offer suggestions for multiple options, when possible explaining the differences
in approach and use-case.
পিএইচপি ব্যবহারের কোনও প্রথাগত উপায় নেই। এই ওয়েবসাইটটি নতুন পিএইচপি বিকাশকারীদের এমন কিছু বিষয়ের সাথে পরিচয় করিয়ে দেবে যা তারা খুব বেশি দেরি না হওয়া অবধি আবিষ্কার করতে পারে না এবং উদ্দেশ্য করে তারা যে বিষয়গুলি বছরের পর বছর ধরে পুনর্বিবেচনা না করে করে আসছে তাদের বিষয়ে কিছু নতুন ধারণা দেবে। এই ওয়েবসাইটটি আপনাকে কোন টুলস গুলো ব্যবহার করতে হবে শুধু তাই জানায় না, সাথে তাদের পদ্ধতির এবং ব্যবহারের ক্ষেত্রে পার্থক্যের ব্যাখ্যা করতে গিয়ে একাধিক বিকল্পের জন্য পরামর্শ প্রস্তাব করে।

This is a living document and will continue to be updated with more helpful information
and examples as they become available.
এটি একটি সচল ডকুমেন্ট এবং আরও সহায়ক তথ্য এবং উদাহরণগুলি উপলভ্য হওয়ার সাথে সাথে আপডেট হতে থাকবে।

## Translations
## অনুবাদসূহ

_PHP: The Right Way_ is translated into many different languages:
_PHP: The Right Way_ বিভিন্ন ভাষায় অনূদিত হয়েছে

* [English](http://www.phptherightway.com)
* [Español](http://phpdevenezuela.github.io/php-the-right-way)
Expand All @@ -42,13 +32,13 @@ _PHP: The Right Way_ is translated into many different languages:
* [简体中文](https://laravel-china.github.io/php-the-right-way/)
* [繁體中文](https://laravel-taiwan.github.io/php-the-right-way)

## Book
## বই

The most recent version of _PHP: The Right Way_ is also available in PDF, EPUB and MOBI formats. [Go to Leanpub][1]
অতি সাম্প্রতিক সংস্করণ _PHP: The Right Way_ পিডিএফ, ইপিইউবি এবং এমওবিআই ফর্ম্যাটেও পাওয়া যাবে। [লিনপাব এ যাওয়ার লিঙ্ক][1]

## How to Contribute
## কীভাবে অবদান রাখবেন

Help make this website the best resource for new PHP programmers! [Contribute on GitHub][2]
এই ওয়েবসাইটটিকে নতুন পিএইচপি প্রোগ্রামারদের সেরা উৎস্য হিসাবে গড়ে তুলতে সহায়তা করুন! [গিটহাবে অবদান রাখুন][2]

[1]: https://leanpub.com/phptherightway
[2]: https://github.com/codeguy/php-the-right-way/tree/gh-pages
3 changes: 2 additions & 1 deletion _posts/01-01-01-Getting-Started.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: শুরু করা
anchor: getting_started
---

# Getting Started {#getting_started_title}
# শুরু করা {#getting_started_title}

8 changes: 4 additions & 4 deletions _posts/01-02-01-Use-the-Current-Stable-Version.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
title: Use the Current Stable Version (8.0)
title: বর্তমান স্থিতিশীল সংস্করণ (৮.0) ব্যবহার করুন
isChild: true
anchor: use_the_current_stable_version
---

## Use the Current Stable Version (8.0) {#use_the_current_stable_version_title}
## বর্তমান স্থিতিশীল সংস্করণ (৮.0) ব্যবহার করুন {#use_the_current_stable_version_title}

If you are getting started with PHP, start with the current stable release of [PHP 8.0][php-release]. PHP 8.x adds many [new features](#language_highlights) over the older 7.x and 5.x versions. The engine has been largely re-written, and PHP is now even quicker than older versions. PHP 8.0 is a major update of the language and contains many new features and optimizations.
আপনি যদি পিএইচপি দিয়ে শুরু করত চান তবে [পিএইচপি ৮.0][php-release] এর স্থিতিশীল সংস্করণ দিয়ে শুরু করুন। পিএইচপি ৮.x সংস্করণে পুরানো ৭.x এবং ৫.x সংস্করণগুলির উপর অনেক [নতুন বৈশিষ্ট্য](#language_highlights) যুক্ত করা হয়েছে। ইঞ্জিনটি মূলত পুনরায় লিখিত হয়েছে এবং পিএইচপি এখন পুরানো সংস্করণগুলির চেয়ে আরও দ্রুত। পিএইচপি ৮.0 সংস্করণ ভাষাটির একটি বৃহত আপডেট এবং এতে অনেকগুলি নতুন বৈশিষ্ট্য এবং অপ্টিমাইজেশন যোগ রয়েছে।

You should try to upgrade to the latest stable version quickly - PHP 5.6 [is already End of Life](http://php.net/supported-versions.php). Upgrading is easy, as there are not many [backwards compatibility breaks][php-bc]. If you are not sure which version a function or feature is in, you can check the PHP documentation on the [php.net][php-docs] website.
আপনার সর্বশেষতম স্থিতিশীল সংস্করণে দ্রুত আপগ্রেড করার চেষ্টা করা উচিত - পিএইচপি ৫.৬ [ইতিমধ্যে ইহার সময় শেষ](http://php.net/supported-versions.php)। আপগ্রেড করা সহজ, কারণ তেমন [পেছনের সামঞ্জস্যতা বিরতি][php-bc] নেই। আপনি যদি নিশ্চিত না হন কোন সংস্করণে এ্কটি নির্দিষ্ট বৈশিষ্ট্য রয়েছে তবে আপনি [পিএইচপি ডট নেট][php-docs] ওয়েবসাইটে পিএইচপি ডকুমেন্টেশন চেক করতে পারেন।

[php-release]: http://php.net/downloads.php
[php-docs]: http://php.net/manual/
Expand Down
9 changes: 6 additions & 3 deletions _posts/01-03-01-Built-in-Web-Server.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
---
title: Built-in Web Server
title: অন্তর্নির্মিত ওয়েব সার্ভার
isChild: true
anchor: builtin_web_server
---

## Built-in web server {#builtin_web_server_title}
## অন্তর্নির্মিত ওয়েব সার্ভার {#builtin_web_server_title}

With PHP 5.4 or newer, you can start learning PHP without installing and configuring a full-fledged web server.
To start the server, run the following command from your terminal in your project's web root:

পিএইচপি ৫.৪ বা আরও নতুন দিয়ে আপনি একটি পূর্ণাঙ্গ ওয়েব সার্ভার ইনস্টল ও কনফিগার না করেই পিএইচপি শিখতে শুরু করতে পারেন।
সার্ভারটি শুরু করতে, আপনার প্রজেক্টের ওয়েব রুটে আপনার টার্মিনাল থেকে নিম্নলিখিত কমান্ডটি চালান:

{% highlight console %}
> php -S localhost:8000
{% endhighlight %}

* [Learn about the built-in, command line web server][cli-server]
* [অন্তর্নির্মিত, কমান্ড লাইন ওয়েব সার্ভার সম্পর্কে আরও জানতে][cli-server]


[cli-server]: http://php.net/features.commandline.webserver
22 changes: 18 additions & 4 deletions _posts/01-04-01-Mac-Setup.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
---
title: ম্যাক ইনস্টল
isChild: true
anchor: mac_setup
---

## Mac Setup {#mac_setup_title}
## ম্যাক ইনস্টল {#mac_setup_title}

macOS comes prepackaged with PHP but it is normally a little behind the latest stable release. There are multiple ways to install the latest PHP version on macOS.
ম্যাক ওএস পিএইচপি নিয়ে প্রিপেকেজড আসে তবে এটি সর্বশেষতম স্থিতিশীল রিলিজের পিছনে সাধারণত কিছুটা পিছনে থাকে। ম্যাক ওএস এ সর্বশেষতম পিএইচপি সংস্করণ ইনস্টল করার একাধিক উপায় রয়েছে।

### Install PHP via Homebrew
### হোমব্রিউয়ের মাধ্যমে পিএইচপি ইনস্টল করুন

[Homebrew] is a package manager for macOS that helps you easily install PHP and various extensions. The Homebrew core repository provides "formulae" for PHP 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, and PHP 8.0. Install the latest version with this command:

[হোমব্রিউ][Homebrew] হচ্ছে ম্যাক ওএস এর জন্য একটি প্যাকেজ ম্যানেজার যা আপনাকে পিএইচপি এবং বিভিন্ন এক্সটেনশানগুলি সহজেই ইনস্টল করতে সহায়তা করে। হোমব্রিউ কোর রিপোজিটরি পিএইচপি ৫.৬, ৭.০, ৭.১, ৭.২, ৭.৩, ৭.৪ এবং পিএইচপি ৮.০ এর জন্য "সূত্রগুলি" সরবরাহ করে। এই কমান্ড দিয়ে সর্বশেষতম সংস্করণ ইনস্টল করুন:

```
brew install php@8.0
```

You can switch between Homebrew PHP versions by modifying your `PATH` variable. Alternatively, you can use [brew-php-switcher][brew-php-switcher] to switch PHP versions automatically.

### Install PHP via Macports
আপনি আপনার `PATH` ভ্যারিয়েবল সংশোধন করে হোমব্রিউ পিএইচপি সংস্করণগুলির মধ্যে স্যুইচ করতে পারেন। বিকল্পভাবে, পিএইচপি সংস্করণগুলি স্বয়ংক্রিয়ভাবে স্যুইচ করার জন্য আপনি [ব্রিউ-পিএইচপি-স্যুইচার][brew-php-switcher] ব্যবহার করতে পারেন।

## ম্যাকপোর্টস এর মাধ্যমে পিএইচপি ইনস্টল

The [MacPorts] Project is an open-source community initiative to design an
easy-to-use system for compiling, installing, and upgrading either
Expand All @@ -28,6 +33,15 @@ MacPorts supports pre-compiled binaries, so you don't need to recompile every
dependency from the source tarball files, it saves your life if you don't
have any package installed on your system.

[ম্যাকপোর্টস][MacPorts] প্রজেক্ট একটি ডিজাইন করার জন্য একটি ওপেন সোর্স সম্প্রদায় উদ্যোগ
কোনওটি সংকলন, ইনস্টল এবং আপগ্রেড করার জন্য সহজেই ব্যবহারযোগ্য সিস্টেম
ওএস এক্স অপারেটিং-এ কমান্ড-লাইন, এক্স 11 বা অ্যাকোয়া ভিত্তিক ওপেন-সোর্স সফ্টওয়্যার
পদ্ধতি.

ম্যাকপোর্টস প্রাক-সংকলিত বাইনারিগুলিকে সমর্থন করে, তাই আপনাকে প্রত্যেকটি পুনরায় সংকলনের প্রয়োজন হবে না
উত্স টার্বল ফাইলগুলি থেকে নির্ভরতা, যদি আপনি না করেন তবে এটি আপনার জীবন বাঁচায়
আপনার সিস্টেমে কোনও প্যাকেজ ইনস্টল করা আছে।

At this point, you can install `php54`, `php55`, `php56`, `php70`, `php71`, `php72`, `php73`, `php74` or `php80` using the `port install` command, for example:

sudo port install php74
Expand Down
6 changes: 4 additions & 2 deletions _posts/03-04-01-Standard-PHP-Library.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
---
title: Standard PHP Library
title: স্ট্যান্ডার্ড পিএইচপি লাইব্রেরি
isChild: true
anchor: standard_php_library
---

## Standard PHP Library {#standard_php_library_title}
## স্ট্যান্ডার্ড পিএইচপি লাইব্রেরি {#standard_php_library_title}

The Standard PHP Library (SPL) is packaged with PHP and provides a collection of classes and interfaces. It is made up
primarily of commonly needed datastructure classes (stack, queue, heap, and so on), and iterators which can traverse
over these datastructures or your own classes which implement SPL interfaces.

স্ট্যান্ডার্ড পিএইচপি লাইব্রেরি (এসপিএল) পিএইচপি দিয়ে প্যাকেজড এবং ক্লাস এবং ইন্টারফেসের সংকলন সরবরাহ করে। এটি মূলত সাধারণত প্রয়োজনীয় ডেটাস্ট্রাকচার ক্লাস (স্ট্যাক, সারি, হিপ এবং আরও কিছু) এবং পুনরাবৃত্তকারীগুলি তৈরি করা হয় যা এই ডেটাস্ট্রাকচারগুলিতে বা আপনার নিজস্ব ক্লাসগুলিতে যেতে পারে যা এসপিএল ইন্টারফেস প্রয়োগ করে।

* [Read about the SPL][spl]
* [SPL video course on Lynda.com(Paid)][spllynda]

Expand Down
7 changes: 6 additions & 1 deletion _posts/05-02-01-The-Basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,9 @@ However, while advancing through the language, we often forget the basics that w
of short cuts and/or bad habits. To help combat this common issue, this section is aimed at reminding coders of the
basic coding practices within PHP.

* Continue reading on [The Basics](/pages/The-Basics.html)
পিএইচপি একটি বিস্তৃত ভাষা যা সমস্ত স্তরের কোডারকে কেবলমাত্র দ্রুতই নয়, দক্ষতার সাথে কোড তৈরি করার ক্ষমতাও দেয়।
যাইহোক, ভাষার মাধ্যমে অগ্রসর হওয়ার সময়, আমরা প্রায়শই প্রথমে অনুগ্রহ করে (বা উপেক্ষা করা) বেসিকগুলি ভুলে যাই
শর্টকাট এবং/বা খারাপ অভ্যাস jonito karone। এই সাধারণ সমস্যা মোকাবেলায় সহায়তা করার জন্য, এই বিভাগটি কোডারদের স্মরণ করিয়ে দেওয়ার উদ্দেশ্যে
পিএইচপি মধ্যে প্রাথমিক কোডিং অনুশীলন।

* Continue reading on [The Basics](/pages/The-Basics.html)
19 changes: 11 additions & 8 deletions _posts/06-02-01-Basic-Concept.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ isChild: true
anchor: basic_concept
---

## Basic Concept {#basic_concept_title}
## বেসিক ধারণা {#basic_concept_title}

We can demonstrate the concept with a simple, yet naive example.
আমরা একটি সাধারণ, তবুও নিরীহ উদাহরণ দিয়ে ধারণাটি প্রদর্শন করতে পারি।

Here we have a `Database` class that requires an adapter to speak to the database. We instantiate the adapter in the
constructor and create a hard dependency. This makes testing difficult and means the `Database` class is very tightly
coupled to the adapter.
এখানে আমাদের একটি `ডাটাবেস` ক্লাস রয়েছে যার জন্য ডাটাবেসের সাথে কথা বলার জন্য একটি অ্যাডাপ্টার প্রয়োজন। আমরা অ্যাডাপ্টারটি ইনস্ট্যান্ট করি
নির্মাতা এবং একটি কঠিন নির্ভরতা তৈরি করুন। এটি পরীক্ষা করা কঠিন করে তোলে এবং এর অর্থ `ডেটাবেস` ক্লাসটি খুব শক্ত করে
অ্যাডাপ্টারের সাথে মিলিত।

{% highlight php %}
<?php
Expand Down Expand Up @@ -47,6 +47,9 @@ class Database
class MysqlAdapter {}
{% endhighlight %}

Now we are giving the `Database` class its dependency rather than creating it itself. We could even create a method
that would accept an argument of the dependency and set it that way, or if the `$adapter` property was `public` we
could set it directly.


এখন আমরা `ডেটাবেস` ক্লাসটি তৈরি করার পরিবর্তে এর নির্ভরতা দিচ্ছি। আমরা এমনকি একটি পদ্ধতি তৈরি করতে পারে
এটি নির্ভরতার একটি যুক্তি গ্রহণ করবে এবং সেভাবে সেট করবে, বা যদি $ $ অ্যাডাপ্টারের সম্পত্তিটি আমরা জনসাধারণের ছিলাম
এটি সরাসরি সেট করতে পারে।

Loading