万本电子书0元读

万本电子书0元读

顶部广告

Magento Extensions Development电子书

售       价:¥

1人正在读 | 0人评论 9.8

作       者:Jérémie Bouchet

出  版  社:Packt Publishing

出版时间:2016-06-01

字       数:196.4万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Design, build, and maintain a powerful, secure, and complete extension for Magento 2, the world’s favorite e-commerce platform About This Book Deploy a complete real-world extension step by step Construct your extension with the best and most up-to-date development methods Learn about team working and code sharing Who This Book Is For If you want to write a specific customization or a large new and full-featured extension on Magento 2, this book is intended for you. You must be an intermediate to professional-level developer in PHP to appreciate this book. What You Will Learn Build a fully-functional complex extension to add new functionality to Magento Register your code with GIT and work with your team Write new layouts and templates Set up a fully configurable grid and forms in the backend Create code unit tests and run them through TDD Propose localized contents Develop optimized extensions for a high-load environment Publish extensions on the Magento Connect Marketplace In Detail Magento has been revealed as the best and the most popular open source e-commerce platform in the world, with about 250k+ online stores. Magento 2 is the most recent version of this awesome toolset: every new and modern development techniques are used to offer a real modular approach and powerful architecture. The book will support you in the writing of innovative and complex extensions. Starting from the beginning, we will cover how to set up a development environment that allows you to be really efficient in your functionality writing, including GIT registering and many other development tools. We then move on to provide a large overview of the best practices to scale your module in a high-load environment. After these foundations, you will see how to use test driven-development (TDD) and unit tests to handle your code. We then build a complex extension together, step by step, and internationally-ready. Next, you will find out how to protect the users’ data. Finally, we will take a look a publishing the extension on the new Magento Connect marketplace and how to protect your intellectual property. After you read this book, you will know everything you need to know to become an invaluable extension editor, whether it is for your customers’ needs or for your own requirements. Style and approach This book takes a step-by-step approach to developing the extension and learning the new concepts of developments. Each topic is explained sequentially in the process of creating the extension, and punctuated by detailed explanations of the features of the code.
目录展开

Magento Extensions Development

Table of Contents

Magento Extensions Development

Credits

About the Author

About the Reviewer

www.PacktPub.com

eBooks, discount offers, and more

Why subscribe?

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Downloading the color images of this book

Errata

Piracy

Questions

1. Introduction to Extension Development

Getting started

Creating an extension

The files that handle our extension

Creating a helper

Creating a controller

Digging into these simple files

You can now test by yourself!

Managing our work with Git source control

Bitbucket registration

Committing our work

Discovering other Git servers!

Registering dependencies

Discovering Composer

Discovering packagist

Designing TicketBlaster – the backend

Creating the table for the events

Creating the backend view to list the events

Summary

2. Deeper Extension Development

Creating the backend forms to manage events

Designing the TicketBlaster module's frontend

Declaring the layouts

Creating a template file

Creating the block files

How layouts and templates work

Summary

3. Best Practices and Scaling for the Web

Creating a new product type

Designing our extension for speed

Enabling developer mode

Enabling the profiler

Enabling the debug logs

What are logs?

The PSR-3 standard

The Monolog library and Magento 2

How Monolog complies with PSR-3

Channels and handlers

How to use the Magento 2 logging system

In a model

In a controller

In a block

How to make your own custom handler and channel

Enabling your browser's debug panel

Get the ultimate profiler tool

Write clean and efficient code

Don't load any model

Getting only really necessary data

Don't write code twice

Use helpers

Use layouts

Security first

Five secure coding practices

Validate input as strictly as possible

Use parameterized queries in your database requests

Escape user input

Use synchronized token pattern

Security headers

Summary

4. Magento and Test-driven Development

Why perform testing in Magento?

Types of test

Testing in Magento

How Magento integrates PHPUnit

Write unit tests with PHPUnit

Assertions

DataProvider

Test Double

How do we create and use stubs and mocks?

Expectations and matchers

Matchers

The will method

The with method

Magento Test Framework

Writing unit tests for TicketBlaster

How to run unit tests

Writing a timed checkout

Writing a unit test

Writing a timed checkout

Executing the unit test

Summary

5. Internationalization

The EAV approach

Store relation table

Creating the new table

Adding the new input to the edit form

Saving the new data in the new table

Showing the store views in the admin grid

Modifying the frontend event list

Restricting the frontend access by store view

Differentiating the guests and registered users' interface

Adding the isLoggedIn() method

Restricting access in the template file

Restricting direct access to the Details page

Translation of template interface texts

Translation of e-mail templates: creating and translating the e-mails

Testing our code by sending the e-mail

Summary

6. Optimizing for Speed and Measuring Conversion Rates

Performance indicators

Slow websites are not SEO-friendly

Best practices

Editing the .htaccess file for compression

Full page cache

Minify and merge CSS/JavaScript files

Configuring a CDN server

Redis and Memcached

How to measure your speed optimization

New Relic

Overviewing the dashboard

Tracking transactions

External services monitoring

Configuring customized alerts

Service Level Agreement reports

Browser

Quanta monitoring

Web scenarios

Application profiling

Google Analytics

YSlow

GTMetrix

Summary

7. Module Creation Etiquette

The possible attacks

SQL injection

Cross-site scripting

Non-persistent

Persistent

Cross-site request forgeries

The Payment Card Industry Data Security Standard

Protecting stored cardholder data

Encrypt transmissions

Developing your own payment method

Implementing the method

Software considerations

PHP

Installing PHP

Configuring PHP

Configuring nginx

PSR-1 to PSR-7

OWASP

Stay tuned

Summary

8. Optimization for Teamwork Development

Version control and code management

Feature branch workflow

Master branch

Develop branch

Feature branches

Release branches

Hotfix branch

Deployment and backups

Backup strategy

Compressing your backup

Peer programming

Developing standards and code review

Project management methodology

Communicating in a developer team

Team awareness of workflow

Slack

Summary

9. Magento Marketplace

The new Connect is called Marketplace

The end of the existing Connect website

A new business model

A specific submission workflow

The Magento Extension Distribution and Service Agreement

Coding standards

Branding

Pricing and licensing

Packaging and submitting the extension

The product profile

Your personal and company profiles

Technical review

Marketing review

Selling extensions by ourselves

The downloadable product

Managing versions with downloadable information

Selling additional services

Having a store is not enough

Summary

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部