Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

9Lessons.info:
Ionic 3 and Angular 4: PHP Restful API User Authentication for Login and Signup
Jun 23, 2017 @ 10:32:17

On the 9Lessons.info site they've posted a tutorial walking you through the creation of an application using Iconic 3, Angular 4 and a PHP restful API and how to handle user authentication and signup. It's a continuation from this previous post that kicked off the series.

Today’s post explains how to implement login authentication system for your AngularJS applications. It will show you how to log in with a user and store the user session, so it deals with token based authentication. Since we are using token based authentication, it protects if any unauthorized request is made and notices for a new login if required. This makes your application’s authentication to be more secured compared with any other authentication system. Every user details will be stored in an external database and a PHP based API is used in the backend for handling this authentication. Hope you’ll find it more easily using this as your authentication system in your AngularJS projects.

They assume you've worked through the previous post and already have the basic structure of the application set up. They share a screencast showing the process but also include the key details - database tables, code and markup - in the post for those that prefer to follow along that way.

tagged: tutorial 9lessons iconic angularjs restful api user authentication signup

Link: http://www.9lessons.info/2017/06/ionic-angular-php-login-restful-api.html

Cloudways Blog:
User Authentication In Yii2 With Email Verification
Mar 13, 2017 @ 13:54:47

The Cloudways blog has a new tutorial posted showing you how to set up a system for user authentication via email in a Yii2-based application. The concepts would be the same in just about any other framework, it's just the code to implement it would be slightly different.

User authentication is an essential component of every web app. Whether it is a simple to-do list or a complex corporate portal, user authentication remains a common factor across all types of PHP applications.

[...] In this tutorial, I will show you how to develop a user authentication component in Yii2 that features a SMTP email verification. If you are new to Yii2, you must first read previous tutorials to get an introduction to Yii2. Next read about form handling in Yii 2 and database management in Yii 2.

The tutorial makes use of this extension for the traditional user handling as a more flexible option than the built-in framework features. They then walk you through the process of creating the new Yii2 project and getting the component installed. It also helps you:

  • run the migrations to create the required tables
  • set up the SMTP mailer
  • update the navigation with the links for logged in/logged out users
  • configuring the email settings

The end result is a signup form that, when submitted will send an email to the user's email address to verify it and allow the user to continue the registration process.

tagged: user authentication yii2 framework tutorial signup package

Link: https://www.cloudways.com/blog/user-authentication-yii2/

SitePoint PHP Blog:
How to Consume Laravel API with AngularJS
Feb 22, 2016 @ 11:23:10

The SitePoint PHP blog has posted a new tutorial from author Francesco Malatesta that continues their series looking at combining AngularJS and PHP, more specifically Laravel, to create a basic application. In this part of series he builds on the server-side code created in part one and creates the Angular frontend.

In part 1, we built our server part. Now we can build our client. We are going to use AngularJS to make a Single Page Application. We will use a very basic bootstrap template, built on the fly.

The application is simple enough and will consist of three "screens" (not "pages" since it's a single page application): a login, a signup and a main screen. He walks you through the setup of a standard frontend development environment including tools and software you'll need to get started. He makes the simple route and Blade template for the single-page app and defines some AngularJS routes for each of the screens. He then includes the code to set up both the signup and login controllers and how to detect if the user is successfully logged in. From there he gets into the functional part of the application: managing the books and the user's wishlist with the standard CRUD (create, read, update and delete) operations. Screenshots are also included at some spots so you can ensure your progress matches the tutorial.

tagged: tutorial angularjs laravel part2 screen login signup book wishlist

Link: http://www.sitepoint.com/how-to-consume-laravel-api-with-angularjs/

Community News:
PHP Newsletter Announced - PHP Weekly
Nov 28, 2012 @ 10:34:19

Wes Mason has started up another project to provide you with a weekly dose of curated PHP content direct to your mailbox - the PHP Weekly Newsletter:

[The newsletter is a] curated weekly injection of hot PHP links for your inbox, including the latest articles of interest, videos from talks and tutorials, new projects and of course the latest news in PHP language and platform development. I promise to try to keep links fresh, comments relevant and the hate out of sight.

The first edition of the news letter will be coming out in about a week (on December 6th), so if you'd like to sign up, head over to the main site for the project and enter your address.

tagged: newsletter weekly email signup

Link:

9Lessons:
User Signup using Facebook Data
Jan 24, 2011 @ 13:48:55

On the 9Lessons site there's a recent tutorial showing you how to make a customized signup form that still uses the Facebook authentication as its base.

Using facebook registration plug-in users can easily sign up on your website using facebook data. With one simple facebook login the form will be filled with user appropriate data. This plug-in is a simple iframe you can place it anywhere on your webpage. You can also add a custom field if facebook doesn’t have.

He walks you through the four (or five, depending on your view) different steps you'll need to make the simple form. You'll need to have a database to store the user's local data in, including their Facebook uid. A simple iframe on your page gives you a Facebook login form and a basic callback page handles the successful submission and saving of Facebook's response. You can add a custom field in the form's json and it'll pass right on through too.

tagged: user signup facebook authentication tutorial

Link:

PHPBuilder.com:
Use jQuery to Build a Newsletter Subscription Popup with a MySQL/PHP Backend
Jan 21, 2011 @ 09:17:27

On PHPBuilder.com today Jason Gilmore has a new tutorial posted showing how to combine PHP, MySQL and a jQuery interface to create a newsletter subscription popup for your site that doesn't interfere with the flow of the site.

More recently, websites have taken a more aggressive approach in terms of inviting visitors to subscribe to a newsletter or consider some other special offer. The approach involves displaying a popup window the very first time a visitor navigates to the website. The visitor has the option of either responding to the offer or providing his e-mail address by interacting with the popup, or can choose to close the popup at which point it won't reappear for a (hopefully) significant period of time.

He uses two jQuery plugins - simplemodal and jquery-cookie to do some of the heavy lifting on the frontend. Full HTML, CSS and Javascript code are provided to make the interface work. There's no backend code for the PHP/MySQL integration, but it's a pretty simple form so it shouldn't be overly difficult.

tagged: jquery tutorial newsletter signup mysql modal plugin

Link:

phpDevelopment Blog:
Zend Framework Tutorial Series: Part 3 – Login and Signup with (RE)Captcha
Jul 13, 2010 @ 12:30:32

In a new post to his phpDevelopment blog Andrei Gabreanu has added the third part of his Zend Framework tutorial series. This time he looks at using a CAPTCHA image in your form via a call to a Zend_Captcha component.

he third part of the tutorial series will present you with a fully functionable solution for a login and signup page that activates a RECaptcha, via Zend_Captcha as a Service, when the user attempts to login/signup 3 times and fails. The tutorial will also show you how to use your models and how to structure your business logic inside your module based application.

They help you set up the database configuration information, create a sample layout for the page, work with the authentication and users controllers and, of course, the form. The inclusion of the CAPTCHA is as easy as adding a Zend_Form_Element_Captcha to the Zend_Form instance and setting up the user/signin process.

tagged: zendframework login signup tutorial captcha

Link:

NETTUTS.com:
How to Code a Signup Form with Email Confirmation
Sep 24, 2009 @ 07:50:20

On the NETTUTS.com website today there's a new tutorial showing how to create a simple signup form (username, password, email address) for your site with a MySQL backend database.

In this tutorial, we are going to be creating a user signup form that adds a user to a database, and then sends out a confirmation email that the user must click on before their account will be activated.

Everything's provided - the database structure, the code to make the submit process work, how to confirm the user once they come back in and creating a simple templating system for the emails it sends. You can download the full source to get it all in one bundle.

tagged: signup email tutorial form

Link:

Zend Developer Zone:
WEBINAR: Everything you need to know about the PHP 5 Certification Exam
Jan 16, 2008 @ 11:16:00

The Zend Developer Zone has posted today about a new webinar from Zend touting "everything you need to know" about the PHP 5 certification exam that the company offers.

Zend Certified Engineers are the most sought after PHP developers. [...] To become a Zend Certified Engineer developers must pass the Certification exam covering a wide range of PHP topics. Attend the Zend Certified Engineer Webinar and hear all the details about the exam.

The webinar will happen on January 30th at about 9am (PST) and will be hosted by Beth Gomez. You can reserve your spot today by signing up over on Zend's pages on Webex.com or just get more information about it from this page over on the Zend site.

tagged: webinar php5 certification exam signup 013008 webinar php5 certification exam signup 013008

Link:

Zend Developer Zone:
WEBINAR: Everything you need to know about the PHP 5 Certification Exam
Jan 16, 2008 @ 11:16:00

The Zend Developer Zone has posted today about a new webinar from Zend touting "everything you need to know" about the PHP 5 certification exam that the company offers.

Zend Certified Engineers are the most sought after PHP developers. [...] To become a Zend Certified Engineer developers must pass the Certification exam covering a wide range of PHP topics. Attend the Zend Certified Engineer Webinar and hear all the details about the exam.

The webinar will happen on January 30th at about 9am (PST) and will be hosted by Beth Gomez. You can reserve your spot today by signing up over on Zend's pages on Webex.com or just get more information about it from this page over on the Zend site.

tagged: webinar php5 certification exam signup 013008 webinar php5 certification exam signup 013008

Link: