{"id":20119604,"url":"https://github.com/box/fast_assert","last_synced_at":"2025-05-06T14:32:37.769Z","repository":{"id":66050290,"uuid":"13967535","full_name":"box/fast_assert","owner":"box","description":null,"archived":false,"fork":false,"pushed_at":"2015-07-13T17:55:18.000Z","size":134,"stargazers_count":37,"open_issues_count":0,"forks_count":8,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-05-14T00:02:53.946Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/box.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-29T20:20:12.000Z","updated_at":"2022-03-27T02:18:14.000Z","dependencies_parsed_at":"2023-02-19T22:00:36.385Z","dependency_job_id":null,"html_url":"https://github.com/box/fast_assert","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/box%2Ffast_assert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/box%2Ffast_assert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/box%2Ffast_assert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/box%2Ffast_assert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/box","download_url":"https://codeload.github.com/box/fast_assert/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224509404,"owners_count":17323079,"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-13T19:16:16.913Z","updated_at":"2024-11-13T19:16:18.480Z","avatar_url":"https://github.com/box.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Fast assert is a php extension that provides a nice way of making Assertions in php.\nIt provides facilities for making various assertions using clean function-chaining syntax without\nhaving to pay any performance costs. For comparison, a functionally-equivalent version\nof Assert implemented in PHP is 150 times slower.\n\nExamples\n--------\n\nTo assert that a value $a is an integer that is greater than 0:\n\n```\nAssert::argument()-\u003eis_integer($a)-\u003eis_true($a \u003e 0);\n```\n\nIf either assertion fails, this will throw an InvalidArgumentException.\n\nTo assert that an object is of a particular type:\n\n```\nAssert::received_value()-\u003eis_instance_of($obj, \"MyDesiredClass\");\n```\n\nIf this assertion fails, this will throw an UnexpectedValueException.\n\nSee the documentation at docs/stubs/Assert.php for a full listing of\nAssert's methods.\n\nInstallation\n------------\n\nFirst, you must build the extension with the following commands:\n\n- `phpize`\n- `./configure --enable-fast_assert`\n- `make`\n- `make test`\n\nThen, you can install it with:\n- `sudo make install`\n- Add the line `extension=fast_assert.so` to your php configuration file of choice. Your php.ini file should work,\nor you can try something like `echo \"extension=fast_assert.so\" \u003e /etc/php.d/fast_assert.ini`\n\n## Copyright and License\n \nCopyright 2014 Box, Inc. All rights reserved.\n \nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n \n   http://www.apache.org/licenses/LICENSE-2.0\n \nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbox%2Ffast_assert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbox%2Ffast_assert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbox%2Ffast_assert/lists"}