{"id":16551765,"url":"https://github.com/bill-c-martin/python-for-php-devs","last_synced_at":"2025-10-28T18:32:06.628Z","repository":{"id":51252964,"uuid":"460706631","full_name":"bill-c-martin/python-for-php-devs","owner":"bill-c-martin","description":"Broad overview of Python from a PHP developer's perspective with code examples to tinker with.","archived":false,"fork":false,"pushed_at":"2023-01-07T07:55:37.000Z","size":30,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-21T03:12:29.117Z","etag":null,"topics":["comparison","php","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bill-c-martin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-18T04:16:16.000Z","updated_at":"2023-12-31T23:25:23.000Z","dependencies_parsed_at":"2023-02-06T15:15:34.898Z","dependency_job_id":null,"html_url":"https://github.com/bill-c-martin/python-for-php-devs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bill-c-martin%2Fpython-for-php-devs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bill-c-martin%2Fpython-for-php-devs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bill-c-martin%2Fpython-for-php-devs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bill-c-martin%2Fpython-for-php-devs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bill-c-martin","download_url":"https://codeload.github.com/bill-c-martin/python-for-php-devs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219859016,"owners_count":16556038,"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":["comparison","php","python"],"created_at":"2024-10-11T19:43:06.653Z","updated_at":"2025-10-28T18:32:01.268Z","avatar_url":"https://github.com/bill-c-martin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- omit in toc --\u003e\n# Python: for PHP Developers\n\nSupplementary repo for my \"Python for PHP Developers: Deep Dive\" series of articles, which explore Python in depth, but from a PHP developer's perspective:\n\n- [Python for PHP Developers: Deep Dive Part 1](https://billmartin.io/blog/python-for-php-developers-part-1)\n- [Python for PHP Developers: Deep Dive Part 2](https://billmartin.io/blog/python-for-php-developers-part-2)\n- Python for PHP Developers: Deep Dive Part 3 (pending)\n- Python for PHP Developers: Deep Dive Part 4 (pending)\n\nThis repo may prove useful for tinkering with the same Python code examples used in these articles.\n\n## Install Python and Friends\n\nIn Ubuntu:\n\n```bash\nsudo apt update\nsudo apt -y upgrade\n\n# Confirm python 3.* is installed, else install it\npython3 -V\n\n# Get le friends too\nsudo apt install -y python3-pip\nsudo apt install -y build-essential libssl-dev libffi-dev python3-dev\n```\n\n### Setup Virtual Environment\n\nInstall `venv`:\n\n```bash\nsudo apt install -y python3-venv\n```\n\nClone this repo, and in the root directory, setup a virtual environment:\n\n```bash\npython3 -m venv env\n```\n\nActivate the virtual environment:\n```bash\nsource env/bin/activate\n```\n\nTest run one of the `.py` files in this repo:\n\n```bash\npython3 code/01-hello.py\n```\n\nTo exit the virtual environment:\n\n```bash\ndeactivate\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbill-c-martin%2Fpython-for-php-devs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbill-c-martin%2Fpython-for-php-devs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbill-c-martin%2Fpython-for-php-devs/lists"}