Awe transformation from php5 to php7 ! Hello! I am Tejomay Saha I - - PowerPoint PPT Presentation

awe transformation from php5 to php7 hello
SMART_READER_LITE
LIVE PREVIEW

Awe transformation from php5 to php7 ! Hello! I am Tejomay Saha I - - PowerPoint PPT Presentation

Awe transformation from php5 to php7 ! Hello! I am Tejomay Saha I am here because I love to express to you people. You can find me at @tejomayonline All the source codes for this topic is in ( https://goo.gl/FZMgW8 ) Working at Srijan


slide-1
SLIDE 1

Awe transformation from php5 to php7 !

slide-2
SLIDE 2

Hello!

I am Tejomay Saha I am here because I love to express to you people. You can find me at @tejomayonline All the source codes for this topic is in

(https://goo.gl/FZMgW8)

slide-3
SLIDE 3

Working at Srijan Technologies pvt. Ltd. As a Full Stack Developer

slide-4
SLIDE 4

1.

Late static binding

Includes in php 5.3.0

slide-5
SLIDE 5

binding late in runtime for inheritance feature to static properties

slide-6
SLIDE 6

Magic Constants

◍ __LINE__ ◍ __FILE__ ◍ __DIR__ ◍ __FUNCTION__ ◍ __CLASS__ ◍ __TRAIT__ ◍ __METHOD__ ◍ __NAMESPACE__ ◍ ClassName::class

slide-7
SLIDE 7

Magic Methods

◍ __sleep()/__wakeup() ◍ __toString() ◍ __invoke() ◍ __debuginfo() ◍ __construct() ◍ __destruct() ◍ __call() ◍ __callStatic() ◍ __set(),__get(),__isset(),__unset()

slide-8
SLIDE 8

Useful Native methods

  • 1. call_user_function_array()
  • 2. array_walk()/array_walk_recursive()
  • 3. array_filter()
  • 4. array_column()
  • 5. array_count_values()
  • 6. array_key_exists()
slide-9
SLIDE 9

Generators/iterators

It is helping without removing the datas with return,yielding it to keep in shared memory and iterate through arrays.

slide-10
SLIDE 10

Opcache ,splat operator

  • 1. Php opcache module for internal code

cache.

  • 2. Dynamic arguments passing with Splat
  • perator … (php5.6)
slide-11
SLIDE 11

Anonymous Classes /function,Traits

  • 1. Using anonymous functions for rapid used in

runtime.now anonymous classes feature is included.

  • 2. Trait aka an inheritance ,reusable feature to

improve feature of single inheritance.

slide-12
SLIDE 12

DI

slide-13
SLIDE 13

IOC/DIC

slide-14
SLIDE 14

SOLID

First 5 principles of OOPs

slide-15
SLIDE 15

SOLID? 1. S - Single-responsibility principle 2. O - Open-closed principle 3. L - Liskov substitution principle 4. I - Interface segregation principle 5. D - Dependency Inversion Principle

slide-16
SLIDE 16

Why SOLID?

  • 1. Roboust
  • 2. Uniform
  • 3. Easily manageable
  • 4. Extendable
  • 5. Coding standard
  • 6. Most of the frameworks

using it.

  • 7. Modular approach
slide-17
SLIDE 17

Design Patterns

slide-18
SLIDE 18

Why Design Patterns?

1. Uniform programming style. 2. Binds to programming paradigm 3. Language agnostic 4. Patterns are made for better architecture 5. Problem solving with new ideas of design

slide-19
SLIDE 19

Design Patterns

1. Creational Patterns - (factory,prototype,singleton etc). 2. Structural Patterns - (facade etc.) 3. Behavioral Patterns - (Iterator etc.)

slide-20
SLIDE 20

Be In Present Moment ???

slide-21
SLIDE 21