Objective-C vs PHP

Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Objective-C
Objective-C

4.9K
2.7K
+ 1
490
PHP
PHP

65.3K
20.5K
+ 1
4.3K
Add tool

Objective-C vs PHP: What are the differences?

What is Objective-C? The primary programming language you use when writing software for OS X and iOS. Objective-C is a superset of the C programming language and provides object-oriented capabilities and a dynamic runtime. Objective-C inherits the syntax, primitive types, and flow control statements of C and adds syntax for defining classes and methods. It also adds language-level support for object graph management and object literals while providing dynamic typing and binding, deferring many responsibilities until runtime.

What is PHP? A popular general-purpose scripting language that is especially suited to web development. Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world.

Objective-C and PHP can be categorized as "Languages" tools.

"Ios", "Xcode" and "Backed by apple" are the key factors why developers consider Objective-C; whereas "Large community", "Open source" and "Easy deployment" are the primary reasons why PHP is favored.

PHP is an open source tool with 23.9K GitHub stars and 5.53K GitHub forks. Here's a link to PHP's open source repository on GitHub.

9GAG, Hootsuite, and 37 Signals are some of the popular companies that use PHP, whereas Objective-C is used by Uber Technologies, Instagram, and Pinterest. PHP has a broader approval, being mentioned in 8904 company stacks & 2933 developers stacks; compared to Objective-C, which is listed in 851 company stacks and 363 developer stacks.

- No public GitHub repository available -

What is Objective-C?

Objective-C is a superset of the C programming language and provides object-oriented capabilities and a dynamic runtime. Objective-C inherits the syntax, primitive types, and flow control statements of C and adds syntax for defining classes and methods. It also adds language-level support for object graph management and object literals while providing dynamic typing and binding, deferring many responsibilities until runtime.

What is PHP?

Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world.
Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Why do developers choose Objective-C?
Why do developers choose PHP?

Sign up to add, upvote and see more prosMake informed product decisions

    Be the first to leave a con

    Sign up to add, upvote and see more consMake informed product decisions

    What companies use Objective-C?
    What companies use PHP?

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with Objective-C?
    What tools integrate with PHP?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    What are some alternatives to Objective-C and PHP?
    Swift
    Writing code is interactive and fun, the syntax is concise yet expressive, and apps run lightning-fast. Swift is ready for your next iOS and OS X project — or for addition into your current app — because Swift code works side-by-side with Objective-C.
    Java
    Java is a programming language and computing platform first released by Sun Microsystems in 1995. There are lots of applications and websites that will not work unless you have Java installed, and more are created every day. Java is fast, secure, and reliable. From laptops to datacenters, game consoles to scientific supercomputers, cell phones to the Internet, Java is everywhere!
    JavaScript
    JavaScript is most known as the scripting language for Web pages, but used in many non-browser environments as well such as node.js or Apache CouchDB. It is a prototype-based, multi-paradigm scripting language that is dynamic,and supports object-oriented, imperative, and functional programming styles.
    Python
    Python is a general purpose programming language created by Guido Van Rossum. Python is most praised for its elegant syntax and readable code, if you are just beginning your programming career python suits you best.
    HTML5
    HTML5 is a core technology markup language of the Internet used for structuring and presenting content for the World Wide Web. As of October 2014 this is the final and complete fifth revision of the HTML standard of the World Wide Web Consortium (W3C). The previous version, HTML 4, was standardised in 1997.
    See all alternatives
    Decisions about Objective-C and PHP
    Gev Balyan
    Gev Balyan
    Founder at UCRAFT · | 4 upvotes · 25.6K views
    atUCRAFTUCRAFT
    Laravel
    Laravel
    JavaScript
    JavaScript
    Ember.js
    Ember.js
    Composer
    Composer
    MySQL
    MySQL
    PHP
    PHP

    We recently decided to rewrite Ucraft's Laravel from scratch.

    The goal is to make everything more Laravel friendly that will speak to frontend JavaScript , built on Ember.js via JSON Patch standard. This will also make out app better extendible and overridable.

    The namespeaces are going to be more correct and the app itself will be compatible with Composer packages.

    This also improves the connection between MySQL and PHP making the reoccurring MySQL queries cached during the lifecycle.

    See more
    Conor Myhrvold
    Conor Myhrvold
    Tech Brand Mgr, Office of CTO at Uber · | 11 upvotes · 583.9K views
    atUber TechnologiesUber Technologies
    RIBs
    RIBs
    Objective-C
    Objective-C
    Swift
    Swift

    Excerpts from how we developed (and subsequently open sourced) Uber's cross-platform mobile architecture framework, RIBs , going from Objective-C to Swift in the process for iOS: https://github.com/uber/RIBs

    Uber’s new application architecture (RIBs) extensively uses protocols to keep its various components decoupled and testable. We used this architecture for the first time in our new rider application and moved our primary language from Objective-C to Swift. Since Swift is a very static language, unit testing became problematic. Dynamic languages have good frameworks to build test mocks, stubs, or stand-ins by dynamically creating or modifying existing concrete classes.

    Needless to say, we were not very excited about the additional complexity of manually writing and maintaining mock implementations for each of our thousands of protocols.

    The information required to generate mock classes already exists in the Swift protocol. For Uber’s use case, we set out to create tooling that would let engineers automatically generate test mocks for any protocol they wanted by simply annotating them.

    The iOS codebase for our rider application alone incorporates around 1,500 of these generated mocks. Without our code generation tool, all of these would have to be written and maintained by hand, which would have made testing much more time-intensive. Auto-generated mocks have contributed a lot to the unit test coverage that we have today.

    We built these code generation tools ourselves for a number of reasons, including that there weren’t many open source tools available at the time we started our effort. Today, there are some great open source tools to generate resource accessors, like SwiftGen. And Sourcery can help you with generic code generation needs:

    https://eng.uber.com/code-generation/ https://eng.uber.com/driver-app-ribs-architecture/

    (GitHub : https://github.com/uber/RIBs )

    See more
    Ajit Parthan
    Ajit Parthan
    CTO at Shaw Academy · | 3 upvotes · 5.9K views
    atShaw AcademyShaw Academy
    PHP
    PHP
    Python
    Python
    #Etl

    Multiple systems means there is a requirement to cart data across them.

    Started off with Talend scripts. This was great as what we initially had were PHP/Python script - allowed for a more systematic approach to ETL.

    But ended up with a massive repository of scripts, complex crontab entries and regular failures due to memory issues.

    Using Stitch or similar services is a better approach: - no need to worry about the infrastructure needed for the ETL processes - a more formal mapping of data from source to destination as opposed to script developer doing his/her voodoo magic - lot of common sources and destination integrations are already builtin and out of the box

    etl @{etlasaservice}|topic:1323|

    See more
    Visual Studio Code
    Visual Studio Code
    GitHub
    GitHub
    Linux
    Linux
    JavaScript
    JavaScript
    Swift
    Swift
    Java
    Java
    PHP
    PHP
    Python
    Python
    XML
    XML
    JSON
    JSON
    Git
    Git
    SVN (Subversion)
    SVN (Subversion)

    I use Visual Studio Code because at this time is a mature software and I can do practically everything using it.

    • It's free and open source: The project is hosted on GitHub and it’s free to download, fork, modify and contribute to the project.

    • Multi-platform: You can download binaries for different platforms, included Windows (x64), MacOS and Linux (.rpm and .deb packages)

    • LightWeight: It runs smoothly in different devices. It has an average memory and CPU usage. Starts almost immediately and it’s very stable.

    • Extended language support: Supports by default the majority of the most used languages and syntax like JavaScript, HTML, C#, Swift, Java, PHP, Python and others. Also, VS Code supports different file types associated to projects like .ini, .properties, XML and JSON files.

    • Integrated tools: Includes an integrated terminal, debugger, problem list and console output inspector. The project navigator sidebar is simple and powerful: you can manage your files and folders with ease. The command palette helps you find commands by text. The search widget has a powerful auto-complete feature to search and find your files.

    • Extensible and configurable: There are many extensions available for every language supported, including syntax highlighters, IntelliSense and code completion, and debuggers. There are also extension to manage application configuration and architecture like Docker and Jenkins.

    • Integrated with Git: You can visually manage your project repositories, pull, commit and push your changes, and easy conflict resolution.( there is support for SVN (Subversion) users by plugin)

    See more
    Ajit Parthan
    Ajit Parthan
    CTO at Shaw Academy · | 1 upvotes · 4.6K views
    atShaw AcademyShaw Academy
    PHP
    PHP
    Python
    Python

    Multiple systems means there is a requirement to cart data across them.

    Started off with Talend scripts. This was great as what we initially had were PHP/Python script - allowed for a more systematic approach to ETL.

    But ended up with a massive repository of scripts, complex crontab entries and regular failures due to memory issues.

    Using Stitch or similar services is a better approach: - no need to worry about the infrastructure needed for the ETL processes - a more formal mapping of data from source to destination as opposed to script developer doing his/her voodoo magic - lot of common sources and destination integrations are already builtin and out of the box

    See more
    Epistol
    Epistol
    Laravel
    Laravel
    PhpStorm
    PhpStorm
    Google Analytics
    Google Analytics
    Sass
    Sass
    HTML5
    HTML5
    JavaScript
    JavaScript
    Vue.js
    Vue.js
    Webpack
    Webpack
    Buddy
    Buddy
    nginx
    nginx
    Ubuntu
    Ubuntu
    GitHub
    GitHub
    Git
    Git
    Deployer
    Deployer
    CloudFlare
    CloudFlare
    Let's Encrypt
    Let's Encrypt
    Stripe
    Stripe
    Asana
    Asana
    Bulma
    Bulma
    PHP
    PHP
    #CDG
    CDG

    I use Laravel because it's the most advances PHP framework out there, easy to maintain, easy to upgrade and most of all : easy to get a handle on, and to follow every new technology ! PhpStorm is our main software to code, as of simplicity and full range of tools for a modern application.

    Google Analytics Analytics of course for a tailored analytics, Bulma as an innovative CSS framework, coupled with our Sass (Scss) pre-processor.

    As of more basic stuff, we use HTML5, JavaScript (but with Vue.js too) and Webpack to handle the generation of all this.

    To deploy, we set up Buddy to easily send the updates on our nginx / Ubuntu server, where it will connect to our GitHub Git private repository, pull and do all the operations needed with Deployer .

    CloudFlare ensure the rapidity of distribution of our content, and Let's Encrypt the https certificate that is more than necessary when we'll want to sell some products with our Stripe api calls.

    Asana is here to let us list all the functionalities, possibilities and ideas we want to implement.

    See more
    Lidiexy Alonso
    Lidiexy Alonso
    Senior Software Engineer at Palinode LLC · | 6 upvotes · 10K views
    React Native
    React Native
    PhpStorm
    PhpStorm
    PHP
    PHP
    Visual Studio Code
    Visual Studio Code
    JavaScript
    JavaScript
    #IDE

    As developer at Applied Health Analytics we decided to create a React Native App. In terms of #IDE I'm a good fan of PhpStorm cause we have a lost of PHP in the backend, but I definitely gave a try to Visual Studio Code and now is my primary JavaScript #IDE. I was impress how fast VS Code has become the No.1 @JavaScript Editor in the community.

    See more
    Tom Klein
    Tom Klein
    CEO at Gentlent · | 4 upvotes · 43K views
    atGentlentGentlent
    JavaScript
    JavaScript
    Node.js
    Node.js
    PHP
    PHP
    HTML5
    HTML5
    Sass
    Sass
    nginx
    nginx
    React
    React
    PostgreSQL
    PostgreSQL
    Ubuntu
    Ubuntu
    ES6
    ES6
    TypeScript
    TypeScript
    Google Compute Engine
    Google Compute Engine
    Socket.IO
    Socket.IO
    Electron
    Electron
    Python
    Python

    Our most used programming languages are JavaScript / Node.js for it's lightweight and fast use, PHP because everyone knows it, HTML5 because you can't live without it and Sass to write great CSS. Occasionally, we use nginx as a web server and proxy, React for our UX, PostgreSQL as fast relational database, Ubuntu as server OS, ES6 and TypeScript for Node, Google Compute Engine for our infrastructure, and Socket.IO and Electron for specific use cases. We also use Python for some of our backends.

    See more
    Labinator Team
    Labinator Team
    at Labinator · | 13 upvotes · 169K views
    atLabinatorLabinator
    HTML5
    HTML5
    CSS 3
    CSS 3
    Sass
    Sass
    Vanilla.JS
    Vanilla.JS
    PHP
    PHP
    WordPress
    WordPress
    Sublime Text
    Sublime Text
    Visual Studio Code
    Visual Studio Code
    Manjaro
    Manjaro
    Debian
    Debian

    At labinator.com, we use HTML5, CSS 3, Sass, Vanilla.JS and PHP when building our premium WordPress themes and plugins. When writing our codes, we use Sublime Text and Visual Studio Code depending on the project. We run Manjaro and Debian operating systems in our office. Manjaro is a great desktop operating system for all range of tasks while Debian is a solid choice for servers.

    WordPress became a very popular choice when it comes to content management systems and building websites. It is easy to learn and has a great community behind it. The high number of plugins as well that are available for WordPress allows any user to customize it depending on his/her needs.

    For development, HTML5 with Sass is our go-to choice when building our themes.

    Main Advantages Of Sass:

    • It's CSS syntax friendly
    • It offers variables
    • It uses a nested syntax
    • It includes mixins
    • Great community and online support.
    • Great documentation that is easy to read and follow.

    As for PHP, we always thrive to use PHP 7.3+. After the introduction of PHP 7, the WordPress development process became more stable and reliable than before. If you a developer considering PHP 7.3+ for your project, it would be good to note the following benefits.

    The Benefits Of Using PHP:

    • Open Source.
    • Highly Extendible.
    • Easy to learn and read.
    • Platform independent.
    • Compatible with APACHE.
    • Low development and maintenance cost.
    • Great community and support.
    • Detailed documentation that has everything you need!

    Why PHP 7.3+?

    • Flexible Heredoc & Nowdoc Syntaxes - Two key methods for defining strings within PHP. They also became easier to read and more reliable.
    • A good boost in performance speed which is extremely important when it comes to WordPress development.
    See more
    Tassanai Singprom
    Tassanai Singprom
    JavaScript
    JavaScript
    PHP
    PHP
    HTML5
    HTML5
    jQuery
    jQuery
    Redis
    Redis
    Amazon EC2
    Amazon EC2
    Ubuntu
    Ubuntu
    Sass
    Sass
    Vue.js
    Vue.js
    Firebase
    Firebase
    Laravel
    Laravel
    Lumen
    Lumen
    Amazon RDS
    Amazon RDS
    GraphQL
    GraphQL
    MariaDB
    MariaDB
    Google Analytics
    Google Analytics
    Postman
    Postman
    Elasticsearch
    Elasticsearch
    Git
    Git
    GitHub
    GitHub
    GitLab
    GitLab
    npm
    npm
    Visual Studio Code
    Visual Studio Code
    Kibana
    Kibana
    Sentry
    Sentry
    BrowserStack
    BrowserStack
    Slack
    Slack

    This is my stack in Application & Data

    JavaScript PHP HTML5 jQuery Redis Amazon EC2 Ubuntu Sass Vue.js Firebase Laravel Lumen Amazon RDS GraphQL MariaDB

    My Utilities Tools

    Google Analytics Postman Elasticsearch

    My Devops Tools

    Git GitHub GitLab npm Visual Studio Code Kibana Sentry BrowserStack

    My Business Tools

    Slack

    See more
    Ali Soueidan
    Ali Soueidan
    Creative Web Developer at Ali Soueidan · | 17 upvotes · 306.9K views
    npm
    npm
    Vue.js
    Vue.js
    vuex
    vuex
    JavaScript
    JavaScript
    Pug
    Pug
    Sass
    Sass