{"id":21762832,"url":"https://github.com/visavi/flystring","last_synced_at":"2026-05-01T02:33:46.929Z","repository":{"id":33832090,"uuid":"37531603","full_name":"visavi/flystring","owner":"visavi","description":"System control data are stored in text format","archived":false,"fork":false,"pushed_at":"2015-06-20T14:30:49.000Z","size":148,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T01:25:00.146Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://visavi.net","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/visavi.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-16T13:24:36.000Z","updated_at":"2016-07-31T00:57:05.000Z","dependencies_parsed_at":"2022-07-24T18:02:06.869Z","dependency_job_id":null,"html_url":"https://github.com/visavi/flystring","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visavi%2Fflystring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visavi%2Fflystring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visavi%2Fflystring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visavi%2Fflystring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/visavi","download_url":"https://codeload.github.com/visavi/flystring/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244739940,"owners_count":20501990,"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":[],"created_at":"2024-11-26T12:13:16.751Z","updated_at":"2026-05-01T02:33:41.906Z","avatar_url":"https://github.com/visavi.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# System control data are stored in text format\n\n[![Latest Stable Version](https://poser.pugx.org/visavi/flystring/v/stable)](https://packagist.org/packages/visavi/flystring)\n[![Total Downloads](https://poser.pugx.org/visavi/flystring/downloads)](https://packagist.org/packages/visavi/flystring)\n[![Latest Unstable Version](https://poser.pugx.org/visavi/flystring/v/unstable)](https://packagist.org/packages/visavi/flystring)\n[![License](https://poser.pugx.org/visavi/flystring/license)](https://packagist.org/packages/visavi/flystring)\n\nBasic useful feature list:\n\n * Reading and retrieval of data in a text file\n * Adding and deleting rows\n * Shift, rotation, clear and moving strings\n * Verifying the existence and size of the output file\n * Suitable for working with CSV format\n\n```php\n\u003c?php\n// Pass the file name and separator (default |)\n$fly = new Visavi\\FlyString('test.txt', '|');\n\n// Checks the existence of the line returns true or false\n$string = $fly-\u003eexists();\n\n// Returns the number of lines in the file, if the file does not exist returns 0\n$string = $fly-\u003ecount();\n\n// Adding lines to the file, if the file does not exist it will be created, line is added to the file\n$fly-\u003einsert(['hello', 'world', 'test', 555]);\n\n// Add a line to the beginning of the file\n$fly-\u003einsert([0, 'The line at the beginning of the', 'something'], false);\n\n// Reading the first line of the file, Default shows the last line in the file\n$string = $fly-\u003eread(0);\n\n// Search the data in cell number 2, it returns an array of the entire row and line number\n$string = $fly-\u003esearch(2, 'test');\n\n// Change the value in the line number 8 and the cell number 2\n$fly-\u003ecell(8, 2, 'new value');\n\n// Writes a string number 5 new data\n$fly-\u003eupdate(5, ['hello', 'world', 'test', 555]);\n\n// Line breaks down the file number 3, if no number is transferred to a null string\n$fly-\u003edown(3);\n\n// Shift 7 line 1 position up, then there would be 7 line 6 and vice versa\n$fly-\u003eshift(7, -1);\n\n// Deleting rows from a file, instead of an array can be passed an integer\n$string = $fly-\u003edelete([1, 2]);\n\n// Rewrites the entire file when the file does not exist, create it\n$fly-\u003ewrite('new file');\n\n// Displays formatted file size, such as 543B, 1.43kB\n$fly-\u003efilesize();\n\n// Clears file\n$fly-\u003eclear();\n```\n\n### Installing\n\n```\ncomposer require visavi/flystring\n```\n\n### License\n\nThe class is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvisavi%2Fflystring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvisavi%2Fflystring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvisavi%2Fflystring/lists"}