Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added PHP with chapter 1,2 #165

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions php/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License

Copyright (c) 2016

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
43 changes: 43 additions & 0 deletions php/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Cracking the Code Interview with PHP
> Cracking the code interview solutions for PHP developers

Tested solutions for chapters.

## Installation

After you go into the app directory, you should execute following commands.
OS X & Linux:

```sh
composer install
```

For installation, we need to consider these:

- Firstly, install PHP 7
- Secondly you can install PHPUnit globally for testing proposes

Now, follow these steps:
- Clone repository
- composer install

## Development setup

To run all tests of the app, execute these commands in the app directory.

```sh
composer install
phpunit
```

## Release History

Refer to [CHANGELOG](https://github.com/midorikocak/ctci-php/CHANGELOG.md)

## Meta

Midori Kocak – [@midorikocak](https://twitter.com/midorikocak) – [email protected]

Distributed under the MIT license. See ``LICENSE`` for more information.

[https://github.com/midorikocak/ctci-php](https://github.com/midorikocak/ctci-php/)
36 changes: 36 additions & 0 deletions php/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"name": "midorikocak/ctci-php",
"description": "php solutions of cracking the code interview using php",
"type": "project",
"license": "MIT",
"authors": [
{
"name": "Midori Kocak",
"email": "[email protected]"
}
],
"minimum-stability": "dev",
"autoload": {
"psr-4": {
"MidoriKocak\\": "src/",
"CTCILibrary\\":"src/CTCILibrary",
"Introduction\\":"src/Introduction",
"Chapter01\\Question1_1\\":"src/Chapter01/Question1_1",
"Chapter01\\Question1_2\\":"src/Chapter01/Question1_2",
"Chapter01\\Question1_3\\":"src/Chapter01/Question1_3",
"Chapter01\\Question1_4\\":"src/Chapter01/Question1_4",
"Chapter01\\Question1_5\\":"src/Chapter01/Question1_5",
"Chapter01\\Question1_6\\":"src/Chapter01/Question1_6",
"Chapter01\\Question1_7\\":"src/Chapter01/Question1_7",
"Chapter01\\Question1_8\\":"src/Chapter01/Question1_8",
"Chapter01\\Question1_9\\":"src/Chapter01/Question1_9",
"Chapter02\\Question2_5\\":"src/Chapter02/Question2_5"
},
"psr-0": {
"MidoriKocakTest\\": "tests/"
}
},
"require": {
"phpunit/phpunit": "^6.1@dev"
}
}
Loading