{"id":19325418,"url":"https://github.com/krypt0nn/caesar","last_synced_at":"2025-07-11T06:35:49.756Z","repository":{"id":57009437,"uuid":"391445409","full_name":"krypt0nn/caesar","owner":"krypt0nn","description":"PHP 7+ implementation of the Caesar's cipher","archived":false,"fork":false,"pushed_at":"2021-07-31T19:41:31.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-24T06:17:04.977Z","etag":null,"topics":["cipher","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/krypt0nn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-31T19:20:51.000Z","updated_at":"2021-07-31T19:45:39.000Z","dependencies_parsed_at":"2022-08-21T14:50:54.901Z","dependency_job_id":null,"html_url":"https://github.com/krypt0nn/caesar","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/krypt0nn/caesar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krypt0nn%2Fcaesar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krypt0nn%2Fcaesar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krypt0nn%2Fcaesar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krypt0nn%2Fcaesar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krypt0nn","download_url":"https://codeload.github.com/krypt0nn/caesar/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krypt0nn%2Fcaesar/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264748998,"owners_count":23658117,"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":["cipher","php"],"created_at":"2024-11-10T02:09:59.527Z","updated_at":"2025-07-11T06:35:49.739Z","avatar_url":"https://github.com/krypt0nn.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Caesar\n\nPHP 7+ implementation of the Caesar's cipher\n\n## Installation\n\n```\ncomposer require krypt0nn/caesar\n```\n\n## Using\n\n```php\n\u003c?php\n\nrequire 'vendor/autoload.php';\n\nuse function Caesar\\caesar;\n\n# And this will print \"Hello, World!\", of course\necho caesar (caesar ('Hello, World!', 1234), -1234);\n```\n\nFunction `Caesar\\caesar` has two arguments: required `string $text` and optional *(and technically also required)* `int $offset = 0`. The second parameter defines the step of characters in the alphabet's encoding. If you want to decode some encoded text - you should use the opposite offset parameter you've used in the encoding. As in the example above we encoded text with offset `1234` and decoded it using its opposite value - `-1234`. Also we could encode our text with offset `-1234` and decode it with `1234`\n\nAuthor: [Nikita Podvirnyy](https://vk.com/technomindlp)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrypt0nn%2Fcaesar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrypt0nn%2Fcaesar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrypt0nn%2Fcaesar/lists"}