{"id":15088981,"url":"https://github.com/srikantaich/php","last_synced_at":"2025-03-21T09:16:06.293Z","repository":{"id":250665541,"uuid":"835082602","full_name":"SrikantAich/PHP","owner":"SrikantAich","description":"This repository is designed to help you learn the fundamentals of PHP programming.","archived":false,"fork":false,"pushed_at":"2024-10-21T06:17:46.000Z","size":210,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T09:16:00.909Z","etag":null,"topics":["apache","back","composer","css","frontend","html5","java","js","mysql","php","php-library","php7","php8","phpmyadmin","web","xampp"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SrikantAich.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-29T06:03:18.000Z","updated_at":"2024-10-21T06:17:50.000Z","dependencies_parsed_at":"2024-10-21T09:09:39.246Z","dependency_job_id":null,"html_url":"https://github.com/SrikantAich/PHP","commit_stats":{"total_commits":34,"total_committers":1,"mean_commits":34.0,"dds":0.0,"last_synced_commit":"76e5e9601b848dfc9e2e544c94b20d08c01c07df"},"previous_names":["srikantaich/php"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SrikantAich%2FPHP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SrikantAich%2FPHP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SrikantAich%2FPHP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SrikantAich%2FPHP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SrikantAich","download_url":"https://codeload.github.com/SrikantAich/PHP/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244767802,"owners_count":20507110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apache","back","composer","css","frontend","html5","java","js","mysql","php","php-library","php7","php8","phpmyadmin","web","xampp"],"created_at":"2024-09-25T08:38:24.540Z","updated_at":"2025-03-21T09:16:06.269Z","avatar_url":"https://github.com/SrikantAich.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\n\n# Learning Basic PHP\n\nWelcome to the Basic PHP Learning Repository! This repository is designed to help you learn the fundamentals of PHP programming.\n\n## Table of Contents\n\n- [Introduction](#introduction)\n- [Getting Started](#getting-started)\n- [Basic Concepts Covered](#basic-concepts-covered)\n- [Examples](#examples)\n- [Resources](#resources)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Introduction\n\nPHP is a popular server-side scripting language that is widely used for web development. This repository provides simple examples and exercises to help you get started with PHP and understand its core concepts.\n\n## Getting Started\n\n### Prerequisites\n\n- A web server (e.g., Apache, Nginx, or use a local server like XAMPP or MAMP)\n- PHP installed on your system (PHP 7.4 or later recommended)\n- A code editor (e.g., VS Code, Sublime Text, PHPStorm)\n\n### Installation\n\n1. Clone this repository:\n   ```bash\n   git clone `https://github.com/SrikantAich/PHP.git`\n   \n   ```\n\n2. Ensure your web server is running and pointing to the repository's directory.\n\n3. Open your browser and navigate to `http://localhost/path-to-your-repo`.\n\n## Basic Concepts Covered\n\n- **Hello World**: Your first PHP script.\n- **Variables**: Understanding PHP variables and data types.\n- **Arrays**: Using indexed and associative arrays.\n- **Control Structures**: If-else statements, switch-case, loops (for, while, foreach).\n- **Functions**: Defining and using functions.\n- **Forms**: Handling form data with PHP.\n\n## Examples\n\n### Hello World\n\n```php\n\u003c?php\necho \"Hello, World!\";\n?\u003e\n```\n\n### Variables\n\n```php\n\u003c?php\n$greeting = \"Hello, World!\";\necho $greeting;\n?\u003e\n```\n\n### Arrays\n\n```php\n\u003c?php\n$fruits = [\"Apple\", \"Banana\", \"Cherry\"];\necho $fruits[0]; // Outputs \"Apple\"\n?\u003e\n```\n\n### Control Structures\n\n```php\n\u003c?php\n$age = 20;\nif ($age \u003e= 18) {\n    echo \"You are an adult.\";\n} else {\n    echo \"You are a minor.\";\n}\n?\u003e\n```\n\n## Resources\n\n- [PHP Official Documentation](https://www.php.net/docs.php)\n- [W3Schools PHP Tutorial](https://www.w3schools.com/php/)\n- [PHP The Right Way](https://phptherightway.com/)\n\n## Contributing\n\nContributions are welcome! Please fork this repository and submit pull requests with improvements.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n---\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrikantaich%2Fphp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrikantaich%2Fphp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrikantaich%2Fphp/lists"}