Leanpub Header

Skip to main content

Programación orientada a objetos en PHP

El libro para aprender programación orientada a objetos pero de verdad y de forma moderna. Encapsulación, Interfaces, clases abstractas, Composer, git y pruebas automatizadas.

Minimum price

$12.00

$20.90

You pay

$20.90

Author earns

$16.72
$

...Or Buy With Credits!

You can get credits monthly with a Reader Membership
PDF
EPUB
202
Pages
About

About

About the Book

¿Para qué este libro?

Ya se, ya se, hay un montón del libros sobre PHP. Pero este libro no es uno más. Con éste libro aprenderás, de verdad, lo que es la programación orientada a objetos. Otros autores se limitan a escupir conceptos y ejemplos sin demasiado sentido. Aquí aprenderás el por qué de las cosas.

Por ejemplo ¿Cuál es la diferencia entre una clase abstracta y un infertace? ¿Cuándo se debe usar cada uno? ¿Para qué sirve un trait? ¿Por qué no debes hacer que todas tus propiedades sean public? ¿Qué son los getters y los setters y por qué debes usarlos?

Y no solo eso, también vas a aprender a usar herramientas como Composer, Git o PHPUnit con las que tu productividad se disparará. Verás la utlidad de cada una de ellas y su manejo básico para que puedas empezar a usarlas.

Y claro, no podemos olvidar las pruebas automatizadas (los famosos test) y el TDD (el desarrollo dirigido por pruebas) que también se tratan en el libro. Todo esto siguiendo las recomendaciones del estándar PSR que tiene un capítulo dedicado. ¿Qué es eso del PSR0, PSR4 y demás siglas que seguro que has visto tantas veces? Por fin lo entenderás y sabrás aprovecharlo.

Y si habías abandonado el PHP hace un tiempo y estás oxidado también hay un capítulo para hacer un repaso rápido. Este capítulo también te servirá de repaso aunque no hayas dejado el PHP de lado. Incluyo algunos conceptos muy útiles que suelen ser poco conocidos.

Al terminar, tu código será de más calidad, más fácil de leer y mantener. Tus clientes o tus jefes estarán más contentos con tu trabajo. Sentirás orgullo del código que escribas. En resumen con este libro te convertirás en un ninja del PHP.

Share this book

Categories

Author

About the Author

Gorka Urrutia Landa

Sus comienzos en el desarrollo web tienen su origen en la procastinación. Mientras estudiaba la carrera de ingeniería industrial descubrió que los libros de informática de su hermano le apasionaban más que la termodinámica y la mecánica cuántica.

Montó su primera empresa allá por el año 2001 y desde entonces ha intentado hacer siempre lo que más le apetecía en el momento (desde el desarrollo web hasta montar una tienda de comics).

Ha llegado a odiar PHP… hasta que descubrió que otra forma de programar era posible. Tanto le volvió a enamorar el desarrollo que incluso escribió un libro de POO en PHP.

Contents

Table of Contents

  1. Herramientas
  2. El estándar PSR
  3. Introducción express a PHP
  4. Programación orientada a objetos
  5. Un ejemplo paso a paso
  6. Encapsulación
  7. Herencia
  8. Introducción al desarrollo guiado por pruebas
  9. Interfaces
  10. Clases abstractas
  11. Traits
  12. Métodos y propiedades Static
  13. Clases y métodos Final
  14. Composición
  15. Introducción a Git
  16. Términos y definiciones

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub