Giter Club home page Giter Club logo

intuji-assignment's Introduction

Integrating Google Calendar API with PHP

Video Demo

Overview

In this project, I aimed to link the Google Calendar API with a PHP application to enable Create, Read, and Delete operations on users' calendars, as instructed by Intuji in the initial email. Initially, I attempted the integration without using Composer libraries, but found multiple issues, necessitating a day-long troubleshooting effort. Finally, I switched to Composer, which speeded up the process.

Initial Attempts

At first, I attempted to integrate the Google Calendar API straight into the PHP program without using Composer modules. Despite extensive investigation and attempts, I discovered numerous mistakes, ranging from namespace issues to dependency conflicts. These challenges proved time-consuming and eventually resulted in a dead end.

Transition to Composer

Realizing the complexities and limitations of the manual integration approach, I switched to Composer for managing dependencies. This decision facilitated seamless integration of the Google API Client library (google/apiclient: 2.16) and other essential packages such as vlucas/phpdotenv for handling environment variables.

Libraries Used

  • google/apiclient: 2.16: Google's official API client library for PHP, crucial for interacting with the Google Calendar API.
  • vlucas/phpdotenv: 5.6: Used to manage environment variables stored in a .env file, enhancing security and configurability.
  • Bootstrap: ^5: Used for frontend UI styling, ensuring a visually appealing and user-friendly interface.

Conclusion

Despite encountering initial setbacks, transitioning to Composer enabled a more efficient and effective integration process. By leveraging Composer's dependency management capabilities and incorporating essential libraries, I successfully implemented CR(U)D operations on users' Google calendars within the PHP application.

intuji-assignment's People

Contributors

rahuldahal avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.