PHP, aka Personal Home Page, is an actively used programming language created in 1995. PHP is a server-side scripting language designed primarily for web development but also used as a general-purpose programming language. Originally created by Rasmus Lerdorf in 1994, the PHP reference implementation is now produced by The PHP Development Team. PHP originally stood for Personal Home Page, but it now stands for the recursive acronym PHP: Hypertext Preprocessor. Read more on Wikipedia...

24Years Old 3,081,914Users 26,354Jobs

Example code from the Hello World Collection:

<?php
  // Hello world in PHP
  echo 'Hello World!';
?>

Example code from Linguist:

#!/usr/bin/php
<?php

echo "PHP\n";

Example code from Wikipedia:

class Person
{
    public $firstName;
    public $lastName;

    public function __construct(string $firstName, string $lastName = '') { // optional second argument
        $this->firstName = $firstName;
        $this->lastName  = $lastName;
    }

    public function greet(): string {
        return 'Hello, my name is ' . $this->firstName .
               (($this->lastName != '') ? (' ' . $this->lastName) : '') . '.';
    }

    public static function staticGreet(string $firstName, string $lastName) {
        return 'Hello, my name is ' . $firstName . ' ' . $lastName . '.';
    }
}

$he    = new Person('John', 'Smith');
$she   = new Person('Sally', 'Davis');
$other = new Person('iAmine');

echo $he->greet(); // prints "Hello, my name is John Smith."
echo '<br />';

echo $she->greet(); // prints "Hello, my name is Sally Davis."
echo '<br />';

echo $other->greet(); // prints "Hello, my name is iAmine."
echo '<br />';

echo Person::staticGreet('Jane', 'Doe'); // prints "Hello, my name is Jane Doe."

Trending Repos

repo stars description
Faker 21754 Faker is a PHP library that generates fake data for you
laravel 54813 A PHP framework for web artisans
framework 18676
monica 7726 Personal CRM. Remember everything about your friends and family.
mautic 3421 Mautic: Open Source Marketing Automation Software.
SecLists 19907 SecLists is the security tester's companion. It's a collection of multiple types of lists used during security assessments, collected in one place. List types include usernames, passwords, URLs, sensitive data patterns, fuzzing payloads, web shells, and many more.
web-frameworks 2932 Which is the fastest web framework?
monolog 15663 Sends your logs to files, sockets, inboxes, databases and various web services
firefly-iii 2718 Firefly III: a personal finances manager
easyswoole 2336 High performance Coroutine PHP Framework, base on Swoole
PrestaShop 3922 PrestaShop offers a fully scalable open source ecommerce solution.
akaunting 2097 Free and Online Accounting Software
phabricator 10942 Open software engineering platform and fun adventure game
yii2 13073 Yii 2: The Fast, Secure and Professional PHP Framework
swoft 3829 πŸš€ PHP Microservice Full Coroutine Framework
elasticsearch-php 3510 Official PHP low-level client for Elasticsearch.
elementor 2505 The most advanced frontend drag & drop page builder. Create high-end, pixel perfect websites at record speeds. Any theme, any page, any design.
opencart 5040 A free shopping cart system. OpenCart is an open source PHP-based online e-commerce solution.
jwt-auth 8258 πŸ” JSON Web Token Authentication for Laravel & Lumen
cashier 1655
magento2 7806 All Submissions you make to Magento Inc. ("Magento") through GitHub are subject to the following terms and conditions: (1) You grant Magento a perpetual, worldwide, non-exclusive, no charge, royalty free, irrevocable license under your applicable copyrights and patents to reproduce, prepare derivative works of, display, publically perform, subli…
webshell 4829 This is a webshell open source project
twill 1507 Twill is an open source CMS toolkit for Laravel that helps developers rapidly create a custom admin console that is intuitive, powerful and flexible. Chat with us and others on Spectrum! https://spectrum.chat/twill
hyperf 1186 πŸš€ A coroutine framework that focuses on hyperspeed and flexibility, specifically used for build microservices or middlewares.
composer 20839 Dependency Manager for PHP

Last updated September 6th, 2019