Software Engineering

PHP and Java projects with complete source code

Firstly, thank you all for comments and ideas related to my revamped blog. Some of you asked me about PHP and Java projects with code samples which I had on my old blog. I have moved these code samples to git repositories while ago.

Therefore, I will use this post to point to the repositories where these PHP and Java code examples can be found.

Table of Contents

PHP and Java projects

Currently, there are several PHP and JAVA projects which I made public in a previous period of time. You can find each one of them described below, with links to code and documentation. Hope you will find this useful! Enjoy!

AuthMicroservice in PHP

AuthMicroservice in PHP

This is boilerplate project for authentication and authorization microservice based on Lumen and JWT.

AuthMicroservice handles authentication and authorization for users. The service provides the following functionality as API endpoints:

  • Authenticate a user (with a password), create a session and return a session token (should be a JWT token)
  • Validate a session token
  • Close a session
  • Retrieve permissions for a user + session combination
  • Grant and revoke permissions for users
  • Authorize endpoint that responds to “can user X execute action Y”
  • Retrieve permissions for a user + session combination
  • Grant and revoke permissions for users
  • Authorize endpoint that responds to “can user X execute action Y”

You can find a complete code here. Moreover, you can find a complete documentation about this project here.

WP Chrono pugin

WP Chrono, WordPress plugin

Firstly, WPChrono was a pet project, where I wanted to create a WordPress plugin. Furthermore I wanted to write this plugin properly.

Secondly, I wanted to code WordPress plugin in object oriented way.

Finally, I wanted to make this plugin WPML compatible.

You can find complete source code of WP Chrono plugin here. This plugin is part of a WordPress repository as well.

If you want to use WordPress with Docker, there is a repository for Docker WordPress configuration file, which I use in my development.

Java programming

Object Oriented programming in Java, course and code examples

While ago, I was a trainer for group of 20 people who wanted to learn Object Oriented Programming in Java. For this occasion I made 50+ code examples in Java. These examples cover:

  • Basic Java concepts (variables, selections, cycles)
  • Object Oriented concepts (classes, objects, inheritance, etc.)
  • Arrays and Java Collections (other data structures in Java)
  • Exceptions handling
  • Debugging
  • Serialization and sorted maps

You can find complete source code of the Object Oriented programming in Java course here.

Internet Programming in Java

Course – Internet Programming in Java, course and code examples

This is a 20-example course for Internet Programming in Java.

Firstly, functional examples which explain Servlets and JSP are covered by this course. JSF framework is covered by this course as well.

You can find complete source code for the Internet Programming in Java course here.

Further reading

If you are generally interested in coding, read more about code review (a.k.a. pull requests) process.

Finally, if you would like to get connected with Graz PHP community, check out this post.

One last thing, if you like my blog posts, I would appreciate if you write a comment or share them. I would like to reach people who would find these code samples helpful. Thanks!

milan.latinovic

Senior PHP Engineer and Enterprise Architect at apilayer GmbH. Topics of interest: Software development, PHP, Java, Python, REST API, OpenApi, MySQL, Microservices, Integrations, Interfaces, Interoperability, Processes, Solution Architecture, LDAP, Azure

Recent Posts

Code Review Best Practices: Code reviewing and being reviewed

This article is about the code review best practices. It explains code review from the… Read More

2 years ago

What are the best Practices in REST API design

API design is an important aspect of modern software development. It allows different systems to… Read More

2 years ago

Next Industrial revolution: What is ChatGPT? Will it replace jobs?

This article sheds some light related to the question will ChatGPT or AIs in general… Read More

2 years ago

What is new in PHP 8.2: What are new features, what is deprecated?

This article provides an overview of new features and deprecations in PHP 8.2. PHP 8.0… Read More

2 years ago

Automation and AI in Software Engineering

This article is about Automation and Artificial Intelligence in Software Engineering: Experiences, Challenges, and Opportunities.… Read More

4 years ago

Enumerations in PHP 8.1 – with code example and references

PHP is getting more and more features. Enumerations in PHP are one of the latest… Read More

4 years ago