PHPackages                             ziyadsk/dk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ziyadsk/dk

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ziyadsk/dk
==========

Another way to write your php

59[1 issues](https://github.com/Ziyadsk/DK/issues)PHP

Since Jan 13Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Ziyadsk/DK)[ Packagist](https://packagist.org/packages/ziyadsk/dk)[ RSS](/packages/ziyadsk-dk/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![](DK_img.png)](DK_img.png)

#### Another way to write your php

[](#another-way-to-write-your-php)

Installation
------------

[](#installation)

### Via Composer

[](#via-composer)

```
composer global require ziyadsk/dk:dev-master

```

#### Add the composer bin to your path

[](#add-the-composer-bin-to-your-path)

```
echo 'export PATH="$PATH:$HOME/.composer/vendor/bin"' >> ~/.bashrc

```

Usage
-----

[](#usage)

```
dk [file] [destination]
```

#### - If no destination is given the current directory will be the destination.

[](#--if-no-destination-is-given-the-current-directory-will-be-the-destination)

Features
--------

[](#features)

### **DK** transform more readable code into php

[](#dk-transform-more-readable-code-into-php)

#### Removed semicolons and dollar signs and openning tags :

[](#removed-semicolons-and-dollar-signs-and-openning-tags-)

```
    name = "John Doe"
    echo("Hello")
```

to

```

```

#### Shorter syntax for functions and loops :

[](#shorter-syntax-for-functions-and-loops-)

```
fn print_100_times(variable){
    for(i in {1..100}){
        print(variable)
    }
}
```

to

```

```

#### More readable foreach loops :

[](#more-readable-foreach-loops-)

```
    for(element in my_arr){
        print(element)
    }
}
```

to

```

```

#### classes , class propreties and interfaces:

[](#classes--class-propreties-and-interfaces)

```
    class Car : Vehicule [SomeInterface,AnotherInterFace] {
        static pub name = "Honda"
        serial_number = "9819020Z0DJLOZEOLD"
        pub fn start_engine(){}
    }
    myCar = new Car()
    myCar->start_engine()

```

to

```

```

Editor Support
--------------

[](#editor-support)

- VScode extension -&gt; [DK](https://marketplace.visualstudio.com/items?itemName=ziyadsk.DK)

License
-------

[](#license)

MIT

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0db0f98b2315584eaaa28deff6ed96c9e525eb3c8b8e0759d074bdcf8802c802?d=identicon)[ziyadsk](/maintainers/ziyadsk)

---

Tags

php

### Embed Badge

![Health badge](/badges/ziyadsk-dk/health.svg)

```
[![Health](https://phpackages.com/badges/ziyadsk-dk/health.svg)](https://phpackages.com/packages/ziyadsk-dk)
```

###  Alternatives

[in2code/ipandlanguageredirect

Redirects TYPO3 visitors automatic or with a suggestlink to another language and/or root page.

1738.0k](/packages/in2code-ipandlanguageredirect)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
