Universidad Libre Seccional Pereira

Total Page:16

File Type:pdf, Size:1020Kb

Universidad Libre Seccional Pereira UNIVERSIDAD LIBRE SECCIONAL PEREIRA FACULTAD DE IINGENIERIAS PROGRAMA ACADÉMICO DE INGENIERIA DE SISTEMAS PLAN DE ASIGNATURA NOMBRE DE LA ASIGNATURA: Aplicaciones en internet CODIGO DE LA ASIGNATURA: 02610 BÁSICO CICLO DE FORMACIÓN: PROFESIONAL X BÁSICO HUMANÍSTICO COMPONENTE DE FORMACIÓN PROFESIONAL X ELECTIVO OPTATIVO UBICACIÓN ASIGNATURA: (Semestre/ 8 año) POSGRADO PREGRADO X NIVEL DE FORMACIÓN: TECNOLÓGICO TÉCNICO No. HORAS Presenciales 4 INTENSIDAD HORARIA SEMANAL: Independientes 5 TOTAL HORAS 9 CREDITOS ACADÉMICOS: 3 PRERREQUISITOS: BASES DE DATOS CORREQUISITOS: PRESENCIAL X A DISTANCIA MODALIDAD: TUTORIADA VIRTUAL OBLIGATORIA X CARÁCTER DE LA ASIGNATURA: ELECTIVA TEORICA TIPO ASIGNATURA: PRÁCTICA TEÓRICO-PRÁCTICA X JUSTIFICACIÓN El curso esta orientado y formulado bajo el esquema: Web and database Training está diseñado para proporcionar a los programadores básicos en PHP una sólida fundamentación en la integración de lenguaje de programación PHP con motores de bases de datos específicamente Versión:0 Mayo 23 de 2016 UNIVERSIDAD LIBRE SECCIONAL PEREIRA MySQL. Este curso guía a través de los conceptos de integración y desarrollo de aplicaciones web integradas a bases de datos y su publicación Online, todos los conceptos son complementados con numerosos ejemplos y ejercicios prácticos, incluyendo la práctica sustancial en partes de una aplicación funcional de codificación y el desarrollo de una aplicación en línea. Todos los ejercicios están diseñados para reforzar los conceptos clave del lenguaje. OBJETIVO GENERAL Proporciona los conocimientos intermedios y avanzados que permiten a los asistentes generar habilidades y competencias en el desarrollo de software Web utilizando PHP como lenguaje de programación y su integración con bases de datos. OBJETIVOS ESPECÍFICOS - Proporcionar a los no programadores una sólida fundamentación en el lenguaje de programación PHP - Proveer los conocimiento base para la presentación de la Certificación Zend Certified Engineer PHP basado en PHP 5.5 - Enseñar los conceptos comunes a los lenguajes de programación y, a continuación, enseñará las normas y mejores prácticas de codificación en el lenguaje PHP. - Proporcionar a los programadores una sólida fundamentación en el lenguaje de programación PHP y su integración con BD - Proveer los conocimiento base para la presentación de la Certificación Zend Certified Engineer PHP basado en PHP 5.5 - Enseñar los conceptos comunes a los lenguajes de programación y , a continuación, enseñará las normas y mejores prácticas de codificación en el lenguaje PHP y su integración con BD PRINCIPIOS DE FORMACION Y METAS DE APRENDIZAJE EN TÉRMINOS DE COMPETENCIAS A. COMPETENCIA DE APRENDIZAJE Y DOMINIOS GENERALES: El estudiante aplica de manera suficiente nociones, conceptos, enfoques, tecnologías, en la toma de decisiones para dar soluciones a problemas informáticos en el lenguaje de programación PHP. B. COMPETENCIAS ESPECÍFICAS: - COMPETENCIA INTERPRETATIVA Identificar los conceptos y técnicas para la elaboración de aplicaciones en internet utilizando PHP como lenguaje de programación. El estudiante podrá desarrollar Aplicaciones Basadas en el lenguaje de programación PHP, que satisfagan las necesidades del usuario. - COMPETENCIA ARGUMENTATIVA: Resolver problemas del desarrollo de aplicación en internet utilizando los conocimientos adquiridos en la asignatura. El estudiante reconocerá las ventajas y limitaciones que ofrece el lenguaje de programación PHP. - COMPETENCIA PROPOSITIVA: Versión:0 Mayo 23 de 2016 UNIVERSIDAD LIBRE SECCIONAL PEREIRA El estudiante está en capacidad de proponer solución a problemas de programación en internet, analizándolos, diseñándolos y planteando solución a esos problemas utilizando la tecnología. El estudiante podrá evaluar y dar soporte a aplicaciones desarrolladas en el lenguaje de programación PHP. METODOLOGÍA GENERAL El curso está organizado en una serie de unidades temáticas, cada una compuesta de temas (Ejes probélicos), apoyados por estrategias y recursos didácticos, bibliografía básicas y lecturas complementarias que permiten alcanzar los objetivos pedagógicos propuestos Para cada unidad temática, el profesor desarrolla el tema en clase utilizando ejemplos que muestran los conceptos, el estudiante deberá desarrollar ejercicios en clase que serán resueltos en grupo. Un ejercicio corresponde a la solución de un problema por lo general simple, utilizando los conocimientos y las habilidades desarrollados en clase, cada ejercicio debe tener como resultado final un programa que funciona, que se puede utilizar y que se puede verificar a través de pruebas. Luego desarrollara ejercicios propuestos como parte de su trabajo independiente, en la clase siguiente se dispone de un tiempo para resolver las dudas encontradas por los estudiantes durante su trabajo independiente, la verificación de las respuestas encontradas, y si es el caso discutir nuevos ejercicios que permitan alcanzar mayor claridad en cada tema. Al final de semestre se planteará un problema más complejo, el cual será resuelto en grupos de dos (2) personas. ESTRATEGIAS PEDAGÓGICAS Y DIDACTICAS Durante el curso el estudiante deberá desarrollar una serie de ejercicios en cada unidad temática. Clase Magistral Talleres de refuerzo Lecturas previas Valoración y motivación de Trabajos en grupo X Exposiciones aptitudes e intereses Presentación de contenidos X Ejemplificación del X Preguntas en clase X mediante síntesis, cuadros, contenido mapas conceptuales Realización de ejercicios y X Evaluación grupal Diagnóstico de X problemas por parte del profesor conocimientos previos Verificación y síntesis de Implementación de X Seguimiento de X contenidos previos recursos didácticos actividad en la clase ESTRATEGIAS Y PORCENTAJES DE EVALUACIÓN TIPO DE EVALUACIÓN Logros x Auto evaluación x Proyectos x Trabajos de campo Pruebas Otros: Seguimiento de actividades x AVANCES TEMA DEL AVANCE 30% Talleres Parcial Unidades: 1 30% Talleres Parcial Unidades: 2 40% Talleres Final Unidades: 3 Versión:0 Mayo 23 de 2016 UNIVERSIDAD LIBRE SECCIONAL PEREIRA PORCENTAJE DE FORMAS DE EVALUACIÓN EVALUACIÓN Evaluación escrita X Exposición Primer Parcial 30 Quicez Laboratorio X Segundo Parcial 30 Talleres Individuales X Trabajo de campo X Examen Final 40 Talleres Grupales X Participación en Clase CONTENIDO PROGRAMATICO UNIDADES BIBLIOGRAFÍA TEMAS O SUBTEMAS TEMÁTICAS BÁSICA 1. Fundamentos de 1.1 Conceptos Básicos [1] programación 1.2 Instalación Y configuración del [2] interprete [5] 1.3 Un programa PHP 1.4 Variables y tipos de datos 1.5 Ámbito de las variables 1.6 Valores desde Formularios 1.7 funciones de Apoyo 1.8 operadores 1.9 Constantes 1.10 Expresiones 1.11 estructuras de selección simple 1.12 estructuras de selección compuestas 1.13 estructuras iterativas simples 1.14 estructuras iterativas compuestas 1.15 funciones 2. Diseño avanzado de 2.1. inclusión de código desde archivos [1] la interfaz de usuario. 2.2 Objetos [2] 2.3 Operaciones en matrices [5] 2.4.Cadena de caracteres 2.5.Manipulación de fechas 2.6.conceptos básicos de HTTP 2.7.Cookies 2.8.Manipulación de archivos 2.9.Mantenimiento de directorios y ficheros 2.10.Manipulación de ficheros y de directorios Versión:0 Mayo 23 de 2016 UNIVERSIDAD LIBRE SECCIONAL PEREIRA 3. Programación de 3.1.Introducción a las bases de datos [1] bases de datos 3.2.MySql –características [2] 3.3.Instrucciones básicas MySql [3] 3.4.Otras bases de datos en PHP [4] 3.5.Gráficos en PHP [5] [6] [7] [8] [9] BIBLIOGRAFÍA Y WEBGRAFÍA 1 Autor Josephus Callaars. Título Zend Framework 2 cookbook : : a guide to all the ins and outs of Pie de imprenta Zend Framework 2 features Fuente QA76.73.P224 C35 2013eb 2 Autor Shasankar, Krishna. Título Zend Framework 2.0 by example --beginner's guide Pie de imprenta Birmingham, UK : : Packt Publishing Ltd.,, 2013. Fuente ebrary, Inc 3 Autor López Montalbán, Iván Autor Secundario Castro Vázquez, Manuel de Título Gestión de bases de datos Edición Segunda edición. Pie de imprenta Madrid : Garceta Grupo Editorial, 2014 4 Autor Adoración de Miguel Castaño, Mario Piattini Velthuis, Esperanza Marcos Martínez Título Diseño de Bases de Datos Relacionales Pie de imprenta Santafé de Bogotá : Alfaomega , 2000 5 Autor Pavón Puertas , Jacobo Título Creación de un portal con PHP y MySQL Edición 4 . Pie de imprenta México : Ra-Ma : Alfaomega , 2011 6 Autor Ozar, Gökhan. Título MySQL management and administration with Navicat Master the tools you thought you knew and discover the features you never knew existed Pie de imprenta Birmingham, UK : : Packt Pub.,, c2012. Fuente ebrary, Inc. Versión:0 Mayo 23 de 2016 UNIVERSIDAD LIBRE SECCIONAL PEREIRA 7 Autor Delisle, Marc. Título Mastering phpMyAdmin 3.4 for effective MySQL management a complete guide to getting started with phpMyAdmin 3.4 and mastering its features Pie de imprenta Birmingham : : Packt Pub.,, 2012 Fuente ebrary, Inc. 8 Autor Riggs, Simon. Título PostgreSQL 9 administration solve real-world PostgreSQL problems with over 100 simple, yet incredibly effective recipes Pie de imprenta Birmingham, U.K. : : Packt,, 2010. Fuente ebrary, Inc. 9 Autor Krosing, Hannu Título PostgreSQL server programming [ [electronic resource] : : ] extend PostgreSQL and integrate the database layer into your development framework Pie de imprenta Birmingham : : Packt Pub.,, 2013. Fuente ebrary, Inc. OTRAS FUENTES DE CONSULTA ELECTRONICAS Clasificación / Título / Año Autor 10 PHP : : programación web para profesionales Cibelli, Christian Gabriel. 11 PHP : : creación de páginas Web dinámicas Beati, Hernán. 12 Persistence
Recommended publications
  • Security Issues and Framework of Electronic Medical Record: a Review
    Bulletin of Electrical Engineering and Informatics Vol. 9, No. 2, April 2020, pp. 565~572 ISSN: 2302-9285, DOI: 10.11591/eei.v9i2.2064 565 Security issues and framework of electronic medical record: A review Jibril Adamu, Raseeda Hamzah, Marshima Mohd Rosli Faculty of Computer and Mathematical Sciences, Universiti Teknologi MARA, Malaysia Article Info ABSTRACT Article history: The electronic medical record has been more widely accepted due to its unarguable benefits when compared to a paper-based system. As electronic Received Oct 30, 2019 medical record becomes more popular, this raises many security threats Revised Dec 28, 2019 against the systems. Common security vulnerabilities, such as weak Accepted Feb 11, 2020 authentication, cross-site scripting, SQL injection, and cross-site request forgery had been identified in the electronic medical record systems. To achieve the goals of using EMR, attaining security and privacy Keywords: is extremely important. This study aims to propose a web framework with inbuilt security features that will prevent the common security vulnerabilities CodeIgniter security in the electronic medical record. The security features of the three most CSRF popular and powerful PHP frameworks Laravel, CodeIgniter, and Symfony EMR security issues were reviewed and compared. Based on the results, Laravel is equipped with Laravel security the security features that electronic medical record currently required. SQL injection This paper provides descriptions of the proposed conceptual framework that Symfony security can be adapted to implement secure EMR systems. Top vulnerabilities This is an open access article under the CC BY-SA license. XSS Corresponding Author: Jibril Adamu, Faculty of Computer and Mathematical Sciences, Universiti Teknologi MARA, 40450 Shah Alam, Selangor, Malaysia.
    [Show full text]
  • Symfony2 Docs Documentation Release 2
    Symfony2 Docs Documentation Release 2 Sensio Labs January 10, 2016 Contents 1 Quick Tour 1 1.1 Quick Tour................................................1 2 Book 23 2.1 Book................................................... 23 3 Cookbook 263 3.1 Cookbook................................................ 263 4 Components 455 4.1 The Components............................................. 455 5 Reference Documents 491 5.1 Reference Documents.......................................... 491 6 Bundles 617 6.1 Symfony SE Bundles........................................... 617 7 Contributing 619 7.1 Contributing............................................... 619 i ii CHAPTER 1 Quick Tour Get started fast with the Symfony2 Quick Tour: 1.1 Quick Tour 1.1.1 The Big Picture Start using Symfony2 in 10 minutes! This chapter will walk you through some of the most important concepts behind Symfony2 and explain how you can get started quickly by showing you a simple project in action. If you’ve used a web framework before, you should feel right at home with Symfony2. If not, welcome to a whole new way of developing web applications! Tip: Want to learn why and when you need to use a framework? Read the “Symfony in 5 minutes” document. Downloading Symfony2 First, check that you have installed and configured a Web server (such as Apache) with PHP 5.3.2 or higher. Ready? Start by downloading the “Symfony2 Standard Edition”, a Symfony distribution that is preconfigured for the most common use cases and also contains some code that demonstrates how to use Symfony2 (get the archive with the vendors included to get started even faster). After unpacking the archive under your web server root directory, you should have a Symfony/ directory that looks like this: www/ <- your web root directory Symfony/ <- the unpacked archive app/ cache/ config/ logs/ Resources/ bin/ src/ Acme/ DemoBundle/ Controller/ Resources/ ..
    [Show full text]
  • Laravel in Action BSU 2015-09-15 Nathan Norton [email protected] About Me
    Laravel in Action BSU 2015-09-15 Nathan Norton [email protected] About Me ● Full Stack Web Developer, 5+ years ○ “If your company calls you a full stack developer, they don’t know how deep the stack is, and neither do you” - Coder’s Proverb ● Expertise/Buzz words: ○ PHP, Composer, ORM, Doctrine, Symfony, Silex, Laravel, OOP, Design Patterns, SOLID, MVC, TDD, PHPUnit, BDD, DDD, Build Automation, Jenkins, Git, Mercurial, Apache HTTPD, nginx, MySQL, NoSQL, MongoDB, CouchDB, memcached, Redis, RabbitMQ, beanstalkd, HTML5, CSS3, Bootstrap, Responsive design, IE Death, Javascript, NodeJS, Coffeescript, ES6, jQuery, AngularJS, Backbone.js, React, Asterisk, Lua, Perl, Python, Java, C/C++ ● Enjoys: ○ Beer About Pixel & Line ● Creative Agency ● Web development, mobile, development, and design ● Clients/projects include Snocru, Yale, Rutgers, UCSF, Wizard Den ● Every employee can write code ● PHP/Laravel, node, AngularJS, iOS/Android ● “It sucks ten times less to work at Pixel & Line than anywhere else I’ve worked” - Zack, iOS developer Laravel ● Born in 2011 by Taylor Otwell ● MVC framework in PHP ● 83,000+ sites ● Convention over configuration ● Attempts to make working with PHP a joy ● Inspired by Ruby on Rails, ASP.NET, Symfony, and Sinatra ● Latest version 5.1, finally LTS Laravel Features ● Eloquent ORM ● Artisan command runner ● Blade Templating engine ● Flexible routing ● Easy environment-based configuration ● Sensible migrations ● Testable ● Caching system ● IoC container for easy dependency injection ● Uses Symfony components ● Web documentation
    [Show full text]
  • Symfony Architecture Configurability ORM Admin Generator Functional Tests Debugging Tools Community Plugins Summary Introductionintroduction
    A PHP5 Open-Source Framework By Hanchao Wu OutlineOutline Introduction Why Symfony Architecture Configurability ORM Admin Generator Functional Tests Debugging tools Community Plugins Summary IntroductionIntroduction Sensio(Frech), Oct. 2005 PHP5 Web Framework Open-Source Licence � MIT license MIT � LAMP full Stack Make heavy use of open-source php projects M-V-C DonDon’’tt reinventreinvent thethe wheelwheel Follow best practices MVC Pattern : Model / View / Controller Unit and functional test framework Environment and deployment support Security (XSS protection by default) Extensible (plugin system) PopularPopular PHPPHP frameworksframeworks CakePHP � Documentation is somewhat lacking � Apparently difficult for beginners KiwiPHP � Powerful, but still unstable Symfony � Great documentation and community � Easy to get started Zend � Supported by Zend (official PHP company) � More of a library than complete framework SymfonySymfony MainMain SellingSelling PointsPoints � Configurability � XSS protection Standard � Debugging tools PHP 5 MVC � Functional tests Routing � Extensibility : Plugins Cache � Admin Generator � ORM : Propel or Doctrine � i18n / l10n ArchitectureArchitecture PackagesPackages ConfigurabilityConfigurability cmd YAML ORMORM Doctrine & Propel � PHP Open-Source Project � Object Relation Model Layer � One of Doctrine's key features is the option to write database queries in a proprietary object oriented SQL dialect called Doctrine Query Language (DQL) inspired by Hibernate's HQL. � YAML --> Database tables DoctrineDoctrine
    [Show full text]
  • Frameworks PHP
    Livre blanc ___________________________ Frameworks PHP Nicolas Richeton – Consultant Version 1.0 Pour plus d’information : www.smile.fr Tél : 01 41 40 11 00 Mailto : [email protected] Page 2 les frameworks PHP PREAMBULE Smile Fondée en 1991, Smile est une société d’ingénieurs experts dans la mise en œuvre de solutions Internet et intranet. Smile compte 150 collaborateurs. Le métier de Smile couvre trois grands domaines : ! La conception et la réalisation de sites Internet haut de gamme. Smile a construit quelques uns des plus grands sites du paysage web français, avec des références telles que Cadremploi ou Explorimmo. ! Les applicatifs Intranet, qui utilisent les technologies du web pour répondre à des besoins métier. Ces applications s’appuient sur des bases de données de grande dimension, et incluent plusieurs centaines de pages de transactions. Elles requièrent une approche très industrielle du développement. ! La mise en œuvre et l’intégration de solutions prêtes à l’emploi, dans les domaines de la gestion de contenus, des portails, du commerce électronique, du CRM et du décisionnel. www.smile.fr © Copyright Smile - Motoristes Internet – 2007 – Toute reproduction interdite sans autorisation Page 3 les frameworks PHP Quelques références de Smile Intranets - Extranets - Société Générale - Caisse d'Épargne - Bureau Veritas - Commissariat à l'Energie Atomique - Visual - Vega Finance - Camif - Lynxial - RATP - AMEC-SPIE - Sonacotra - Faceo - CNRS - AmecSpie - Château de Versailles - Banque PSA Finance - Groupe Moniteur - CIDJ - CIRAD - Bureau
    [Show full text]
  • WEB DEVELOPER » Portfolio » Github SUMMARY I’M a Full-Stack Developer and a Programming Instructor
    LUIS MONTEALEGRE - WEB DEVELOPER » Portfolio » Github SUMMARY I’m a full-stack developer and a programming instructor. I want to be surrounded by people who push me to do the best work of my career as well as people I can nurture and support. I have over 13 years of experience in tech both in Mexico and the United States and I’m looking forward to be part of a team that values work-life balance, TDD, pair programming and code reviews. PROGRAMMING LANGUAGES AND TOOLS PHP 11 years • Laravel, Zend Framework 1, Symfony 1 & 2, Slim 2, Silex, Doctrine 1 & 2, PHPUnit, Behat, phpspec, Codeception • MySQL, PostgreSQL • jQuery, Jasmine, RequireJS, Bower, npm, Webpack, ES6, PhantomJS • Bootstrap, Sass • Vagrant, Docker • Git, SVN C# 4 years • ASP.NET Web Forms, Visual Basic • jQuery, JQuery UI • SQL Server, Oracle PL/SQL • TFS Java 2 years • Spring Boot, JUnit, Hibernate, DBUnit, Servlets, JSP/JSTL, Swing • Maven • MySQL, PostgreSQL CERTIFICATIONS EDUCATION Latinux Certified Linux Operator B. S. and Master in Computer Science. Oracle Certified Java Programmer Emeritus Autonomous University of Puebla. MCTS Microsoft SQL Server & Web [1998-2003, 2003-2005] Applications OPEN SOURCE CONTRIBUTIONS AND COMMUNITY WORK My contributions to open source projects include: Drupal Console, Codeception, Eris and Couscous. I also maintain some libraries: Modules System for Slim 2, Doctrine DBAL Fixtures Generator and a Yelp Fusion API Java Client. I'm the founder an former organizer of the PHP Puebla User Group. I helped organizing dozens of workshops and technical talks. I'm currently particpating with the San Antonio Coding Challenge meetup.
    [Show full text]
  • Persistence in PHP with Doctrine ORM
    www.allitebooks.com Persistence in PHP with Doctrine ORM Build a model layer of your PHP applications successfully, using Doctrine ORM Kévin Dunglas BIRMINGHAM - MUMBAI www.allitebooks.com Persistence in PHP with Doctrine ORM Copyright © 2013 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. First published: December 2013 Production Reference: 1111213 Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK. ISBN 978-1-78216-410-4 www.packtpub.com Cover Image by Gagandeep Sharma ([email protected]) www.allitebooks.com Credits Author Project Coordinator Kévin Dunglas Ankita Goenka Reviewers Proofreader Kirill Chebunin Bernadette Watkins Stefan Kleff Adam Prager Indexer Chris Woodford Tejal Daruwale Acquisition Editor Graphics Harsha Bharwani Sheetal Aute Abhinash Sahu Lead Technical Editor Vaibhav Pawar Production Coordinator Arvindkumar Gupta Technical Editors Nadeem N.
    [Show full text]
  • Quantifying the Security Benefits of Debloating Web Applications
    Less is More: Quantifying the Security Benefits of Debloating Web Applications Babak Amin Azad Pierre Laperdrix Nick Nikiforakis Stony Brook University Stony Brook University Stony Brook University [email protected] [email protected] [email protected] Abstract This increase in capabilities requires more and more complex server-side and client-side code to be able to deliver the features As software becomes increasingly complex, its attack surface that users have come to expect. However, as the code and expands enabling the exploitation of a wide range of vulnerabil- code complexity of an application expands, so does its attack ities. Web applications are no exception since modern HTML5 surface. Web applications are vulnerable to a wide range standards and the ever-increasing capabilities of JavaScript are of client-side and server-side attacks including Cross-Site utilized to build rich web applications, often subsuming the Scripting [4, 47, 72], Cross-Site Request Forgery [3, 33, 46], need for traditional desktop applications. One possible way of Remote Code Execution [18], SQL injection [19,41], and timing handling this increased complexity is through the process of attacks [35,40]. All of these attacks have been abused numerous software debloating, i.e., the removal not only of dead code but times to compromise web servers, steal user data, move laterally also of code corresponding to features that a specific set of users behind a company’s firewall, and infect users with malware and do not require. Even though debloating has been successfully cryptojacking scripts [43,49,74]. applied on operating systems, libraries, and compiled programs, its applicability on web applications has not yet been investigated.
    [Show full text]
  • Comparison of Performance Between Raw SQL and Eloquent ORM in Laravel
    Comparison of performance between Raw SQL and Eloquent ORM in Laravel Faculty of Computing i Blekinge Institute of Technology SE-371 79 Karlskrona Sweden Contact Information: Author(s): Ishaq Jound E-mail: [email protected] Hamed Halimi E-mail: [email protected] University advisor: Mikael Svahnberg Faculty of Computing Faculty of Computing Internet : www.bth.se Blekinge Institute of Technology Phone : +46 455 38 50 00 SE-371 79 Karlskrona, Sweden Fax : +46 455 38 50 57 i ABSTRACT Context. PHP framework Laravel offers three techniques to interact with databases, Eloquent ORM, Query builder and Raw SQL. It is important to select the right database technique when developing a web application because there are pros and cons with each approach. Objectives. In this thesis we will measure the performance of Raw SQL and Eloquent ORM, there is little research on which technique is faster. Intuitively, Raw SQL should be faster than Eloquent ORM, but exactly how much faster needs to be researched. Methods. To measure the performance of both techniques, we developed a blog application and we ran database operations select, insert and update in both techniques. Conclusions. Results indicated that overall Raw SQL performed better than Eloquent ORM in our database operations. There was a noticeable difference of average response time between Raw SQL and Eloquent ORM in all database operations. We can conclude that Eloquent ORM is good for building small to medium sized applications, where simple CRUD operations are used for the small amount of data. Typically for tasks like inserting a single row into a database or retrieving few rows from the database.
    [Show full text]
  • PHP+Persistence.Pdf
    PHP Persistence Concepts, Techniques and Practical Solutions with Doctrine — Michael Romer PHP Persistence Concepts, Techniques and Practical Solutions with Doctrine Michael Romer [email protected] PHP Persistence: Concepts, Techniques and Practical Solutions with Doctrine Michael Romer Munster, Nordrhein-Westfalen Germany ISBN-13 (pbk): 978-1-4842-2558-5 ISBN-13 (electronic): 978-1-4842-2559-2 DOI 10.1007/978-1-4842-2559-2 Library of Congress Control Number: 2016961535 Copyright © 2016 by Michael Romer This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed. Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights. While the advice and information in this book are believed to be true and accurate at the date of publication, neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made.
    [Show full text]
  • Doctrine Create Schema from Database
    Doctrine Create Schema From Database Travers is falsely beardless after morbific Frederich disinhume his subbings costively. Apogeal Bill sometimes unbridles his salability polytheistically and situates so indefensibly! Predicted Torin burbled her lambskins so adjacently that Ariel getters very beneficently. MySQL Doctrine and UTF- Florian Eckerstorfer. How to generate entities from database schema using. Managing Persistent Data with Doctrine 2 PHP ORM. Side and Side Doctrine2 and Propel 2 Vertabelo Database. Php symfony doctrinebuild-db Creates classes for current model php symfony doctrinebuild-model Creates schemayml from other database. For versioning your database schema and easily deploying changes to it. In moose to operate Cycle ORM requires a transparent database connection to deliver set. Symfony schema database drop charge and load fixtures in. Doctrine integration CodeIgniter Forums. Symfony Doctrine ORM Tutorialspoint. Migrations Generate Migration Laravel Doctrine. Mark the querying for taking the appropriate channel, schema from database, how to change does not be processed. The database except a pull force may be created but will model. Multi-namespace migrations with doctrinemigrations 30. On database structure declarations and is used in projects such as Doctrine Schema files declare what are database structure should low and. For default mappings php binconsole doctrineschemaupdate. Update the schema in doctrinesymfony CodeProject. DoctrineDBALDBALException Unknown database type geometry requested. Handling database migrations with inanzzz. When made have done create replace update of database schema from entities you are used to clean these commands Doctrine offers another. Use the Doctrine CLI tools to initialize the database. We have dumped the schema into separate single migration but hear we apply let us double-check layer running this migration really creates a.
    [Show full text]
  • Domain-Driven Design in PHP
    Domain-Driven Design in PHP A Highly Practical Guide Carlos Buenosvinos Christian Soronellas Keyvan Akbary BIRMINGHAM - MUMBAI Domain-Driven Design in PHP Copyright © 2017 Carlos Buenosvinos, Christian Soronellas, Keyvan Akbary All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book. Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information. First published: June 2017 Production reference: 1090617 Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK. ISBN 978-1-78728-494-4 www.packtpub.com Credits Authors Technical Editor Carlos Buenosvinos Joel Wilfred D'souza Christian Soronellas Keyvan Akbary Acquisition Editor Layout co-ordinator Frank Pohlmann Aparna Bhagat Indexer Pratik Shirodkar Foreword I must admit that when I first heard of the Domain-Driven Design in PHP initiative, I was a bit worried. The danger was twofold: first of all, when glancing over the table of contents, the subject matter looked like it was a rehash of content that was already available in several other Domain-Driven Design books.
    [Show full text]